From 13b0270d5cc185165be0870d8618e97150daeedf Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Thu, 13 Nov 2014 16:33:53 -0500 Subject: [PATCH] Replace hard-code launch types with their constants. Change-Id: I05f25d4429c110c07a000328cfc64646a17a059b Signed-off-by: Marc Khouzam --- .../internal/debug/application/DebugAttachedExecutable.java | 3 +-- .../eclipse/cdt/internal/debug/application/DebugCoreFile.java | 3 +-- .../cdt/internal/debug/application/DebugExecutable.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugAttachedExecutable.java b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugAttachedExecutable.java index eac99283393..33b25c729b9 100644 --- a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugAttachedExecutable.java +++ b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugAttachedExecutable.java @@ -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) { diff --git a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugCoreFile.java b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugCoreFile.java index 5b7759e2b28..7e8ccbb8342 100644 --- a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugCoreFile.java +++ b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugCoreFile.java @@ -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) { diff --git a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugExecutable.java b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugExecutable.java index 9df24a44ea6..04b68505984 100644 --- a/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugExecutable.java +++ b/debug/org.eclipse.cdt.debug.application/src/org/eclipse/cdt/internal/debug/application/DebugExecutable.java @@ -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,