Use 3.6 launch configuration APIs
authorEd Swartz <ed.swartz@nokia.com>
Tue, 27 Apr 2010 11:32:39 -0500
changeset 1296 9d0235f04d6d
parent 1294 76455ae5d5fd
child 1301 e1c5d5512540
Use 3.6 launch configuration APIs
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/LaunchPlugin.java
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/LaunchPlugin.java	Tue Apr 27 10:18:58 2010 -0500
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/LaunchPlugin.java	Tue Apr 27 11:32:39 2010 -0500
@@ -250,7 +250,7 @@
 		boolean openLaunchConfigDialog = false;
 
 		// get the default config name and make sure it's unique
-		final String defaultConfigName = getLaunchManager().generateUniqueLaunchConfigurationNameFrom(getDefaultLaunchConfigName(project, executable));
+		final String defaultConfigName = getLaunchManager().generateLaunchConfigurationName(getDefaultLaunchConfigName(project, executable));
 		
 		// try to determine if this is for the emulator or not.  also get the list of binaries for the current
 		// build configuration or project.
@@ -355,10 +355,9 @@
 				IStructuredSelection selection = new StructuredSelection(config.doSave());
 				String identifier;
 				if (mode.equals("run")) //$NON-NLS-1$
-					identifier = new String("org.eclipse.debug.ui.launchGroup.run"); //$NON-NLS-1$
+					identifier = IDebugUIConstants.ID_RUN_LAUNCH_GROUP;
 				else
-					identifier = new String("org.eclipse.debug.ui.launchGroup.debug"); //$NON-NLS-1$
-
+					identifier = IDebugUIConstants.ID_DEBUG_LAUNCH_GROUP;
 				DebugUITools.openLaunchConfigurationDialogOnGroup(CUIPlugin.getActiveWorkbenchShell(), selection, identifier);
 			}
 			else