956
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.cdt.internal.debug.launch;
|
|
18 |
|
|
19 |
import org.eclipse.cdt.debug.core.executables.Executable;
|
|
20 |
import org.eclipse.core.resources.IProject;
|
|
21 |
import org.eclipse.core.runtime.IPath;
|
|
22 |
|
|
23 |
import com.nokia.carbide.remoteconnections.RemoteConnectionsActivator;
|
|
24 |
import com.nokia.carbide.remoteconnections.interfaces.IConnectionTypeProvider;
|
|
25 |
import com.nokia.carbide.remoteconnections.interfaces.IService;
|
|
26 |
import com.nokia.cdt.internal.debug.launch.LaunchPlugin.ILaunchCreationWizardFactory;
|
|
27 |
import com.nokia.cdt.internal.debug.launch.newwizard.LaunchWizard;
|
|
28 |
import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
|
|
29 |
import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
|
|
30 |
|
|
31 |
public class PhoneLaunchShortcut extends AbstractSymbianLaunchShortcut {
|
|
32 |
|
|
33 |
@Override
|
|
34 |
protected void launchProject(IProject project, Executable executable, IPath defaultMMP, String mode) {
|
|
35 |
LaunchPlugin.getDefault().launchProject(project, executable, defaultMMP, mode,
|
|
36 |
new ILaunchCreationWizardFactory() {
|
|
37 |
public ILaunchCreationWizard createLaunchCreationWizard(LaunchOptions launchOptions) throws Exception {
|
|
38 |
IConnectionTypeProvider provider = RemoteConnectionsActivator.getConnectionTypeProvider();
|
|
39 |
IService trkService = provider.findServiceByID("com.nokia.carbide.trk.support.service.TRKService"); //$NON-NLS-1$
|
|
40 |
LaunchWizard launchWizard = new LaunchWizard(launchOptions, trkService);
|
|
41 |
return launchWizard;
|
|
42 |
};
|
|
43 |
});
|
|
44 |
}
|
|
45 |
} |