debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/BoardLaunchShortcut.java
changeset 1171 651ae39eb566
parent 956 d1e221a2875f
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 
       
    25 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    23 import com.nokia.cdt.internal.debug.launch.LaunchPlugin.ILaunchCreationWizardFactory;
    26 import com.nokia.cdt.internal.debug.launch.LaunchPlugin.ILaunchCreationWizardFactory;
    24 import com.nokia.cdt.internal.debug.launch.wizard.AbstractLaunchWizard;
    27 import com.nokia.cdt.internal.debug.launch.wizard.AbstractLaunchWizard;
    25 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
    28 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
    26 import com.nokia.cdt.internal.debug.launch.wizard.LaunchCreationWizard;
    29 import com.nokia.cdt.internal.debug.launch.wizard.LaunchCreationWizard;
    27 import com.nokia.cdt.internal.debug.launch.wizard.LaunchCreationWizardInstance;
    30 import com.nokia.cdt.internal.debug.launch.wizard.LaunchCreationWizardInstance;
    28 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
    31 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
    29 
    32 
    30 public class BoardLaunchShortcut extends AbstractSymbianLaunchShortcut {
    33 public class BoardLaunchShortcut extends AbstractSymbianLaunchShortcut {
       
    34 	
       
    35 	/* (non-Javadoc)
       
    36 	 * @see com.nokia.cdt.internal.debug.launch.AbstractSymbianLaunchShortcut#isSupportedConfiguration(org.eclipse.debug.core.ILaunchConfiguration)
       
    37 	 */
       
    38 	@Override
       
    39 	protected boolean isSupportedConfiguration(ILaunchConfiguration config)
       
    40 			throws CoreException {
       
    41 		return SettingsData.isStopModeConfiguration(config);
       
    42 	}
    31 	
    43 	
    32 	@Override
    44 	@Override
    33 	protected void launchProject(IProject project, Executable executable, IPath defaultMMP, String mode) {
    45 	protected void launchProject(IProject project, Executable executable, IPath defaultMMP, String mode) {
    34 		LaunchPlugin.getDefault().launchProject(project, executable, defaultMMP, mode, 
    46 		LaunchPlugin.getDefault().launchProject(project, executable, defaultMMP, mode, 
    35 																new ILaunchCreationWizardFactory() {
    47 																new ILaunchCreationWizardFactory() {