debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/PhoneLaunchShortcut.java
changeset 1171 651ae39eb566
parent 956 d1e221a2875f
child 1254 0e45b6356eac
equal deleted inserted replaced
1170:6326efa5a4bc 1171:651ae39eb566
    16 */
    16 */
    17 package com.nokia.cdt.internal.debug.launch;
    17 package com.nokia.cdt.internal.debug.launch;
    18 
    18 
    19 import org.eclipse.cdt.debug.core.executables.Executable;
    19 import org.eclipse.cdt.debug.core.executables.Executable;
    20 import org.eclipse.core.resources.IProject;
    20 import org.eclipse.core.resources.IProject;
       
    21 import org.eclipse.core.runtime.CoreException;
    21 import org.eclipse.core.runtime.IPath;
    22 import org.eclipse.core.runtime.IPath;
       
    23 import org.eclipse.debug.core.ILaunchConfiguration;
    22 
    24 
    23 import com.nokia.carbide.remoteconnections.RemoteConnectionsActivator;
    25 import com.nokia.carbide.remoteconnections.RemoteConnectionsActivator;
    24 import com.nokia.carbide.remoteconnections.interfaces.IConnectionTypeProvider;
    26 import com.nokia.carbide.remoteconnections.interfaces.IConnectionTypeProvider;
    25 import com.nokia.carbide.remoteconnections.interfaces.IService;
    27 import com.nokia.carbide.remoteconnections.interfaces.IService;
       
    28 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    26 import com.nokia.cdt.internal.debug.launch.LaunchPlugin.ILaunchCreationWizardFactory;
    29 import com.nokia.cdt.internal.debug.launch.LaunchPlugin.ILaunchCreationWizardFactory;
    27 import com.nokia.cdt.internal.debug.launch.newwizard.LaunchWizard;
    30 import com.nokia.cdt.internal.debug.launch.newwizard.LaunchWizard;
    28 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
    31 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
    29 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
    32 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
    30 
    33 
    31 public class PhoneLaunchShortcut extends AbstractSymbianLaunchShortcut {
    34 public class PhoneLaunchShortcut extends AbstractSymbianLaunchShortcut {
    32 
    35 
       
    36 	/* (non-Javadoc)
       
    37 	 * @see com.nokia.cdt.internal.debug.launch.AbstractSymbianLaunchShortcut#isSupportedConfiguration(org.eclipse.debug.core.ILaunchConfiguration)
       
    38 	 */
       
    39 	@Override
       
    40 	protected boolean isSupportedConfiguration(ILaunchConfiguration config)
       
    41 			throws CoreException {
       
    42 		return SettingsData.isAppTRKConfiguration(config) || SettingsData.isSysTRKConfiguration(config);
       
    43 	}
       
    44 	
    33 	@Override
    45 	@Override
    34 	protected void launchProject(IProject project, Executable executable, IPath defaultMMP, String mode) {
    46 	protected void launchProject(IProject project, Executable executable, IPath defaultMMP, String mode) {
    35 		LaunchPlugin.getDefault().launchProject(project, executable, defaultMMP, mode, 
    47 		LaunchPlugin.getDefault().launchProject(project, executable, defaultMMP, mode, 
    36 																new ILaunchCreationWizardFactory() {
    48 																new ILaunchCreationWizardFactory() {
    37 					public ILaunchCreationWizard createLaunchCreationWizard(LaunchOptions launchOptions) throws Exception {
    49 					public ILaunchCreationWizard createLaunchCreationWizard(LaunchOptions launchOptions) throws Exception {