1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Replace hard-code launch types with their constants.

Change-Id: I05f25d4429c110c07a000328cfc64646a17a059b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2014-11-13 16:33:53 -05:00
parent bb5d400d4f
commit 13b0270d5c
3 changed files with 3 additions and 6 deletions

View file

@ -208,8 +208,7 @@ public class DebugAttachedExecutable {
}
protected static ILaunchConfigurationType getLaunchConfigType() {
return getLaunchManager().getLaunchConfigurationType(
"org.eclipse.cdt.launch.attachLaunchType"); //$NON-NLS-1$
return getLaunchManager().getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_ATTACH);
}
protected static ILaunchConfiguration createConfiguration(boolean save) {

View file

@ -49,8 +49,7 @@ public class DebugCoreFile {
}
protected static ILaunchConfigurationType getLaunchConfigType() {
return getLaunchManager().getLaunchConfigurationType(
"org.eclipse.cdt.launch.postmortemLaunchType"); //$NON-NLS-1$
return getLaunchManager().getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_POST_MORTEM);
}
protected static ILaunchConfiguration createConfiguration(String corePath, String exePath, boolean save) {

View file

@ -274,8 +274,7 @@ public class DebugExecutable {
}
protected static ILaunchConfigurationType getLaunchConfigType() {
return getLaunchManager().getLaunchConfigurationType(
"org.eclipse.cdt.launch.applicationLaunchType"); //$NON-NLS-1$
return getLaunchManager().getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_APP);
}
protected static ILaunchConfiguration createConfiguration(String bin,