From ff59fc7493b6ec278fd28b3ba9f597b9f4681125 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 16 Aug 2004 17:14:01 +0000 Subject: [PATCH] Warning cleanup. --- launch/org.eclipse.cdt.launch/ChangeLog | 4 ++++ .../launch/internal/CApplicationLaunchShortcut.java | 12 +++++++++--- .../internal/ui/LaunchUIPluginResources.properties | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog index c90a018d4f8..98c4f78b4fb 100644 --- a/launch/org.eclipse.cdt.launch/ChangeLog +++ b/launch/org.eclipse.cdt.launch/ChangeLog @@ -1,3 +1,7 @@ +2004-08-12 Mikhail Khodjaiants + Warning cleanup. + * CApplicationLaunchShortcut.java + 2004-08-16 Mikhail Khodjaiants Contextual launch shortcuts cleanup. * plugin.properties diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java index 4031ef8a4be..c1e8e813c43 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java @@ -234,8 +234,10 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut { protected String getDebugConfigDialogMessageString(ICDebugConfiguration [] configList, String mode) { if (mode.equals(ILaunchManager.DEBUG_MODE)) { return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseConfigToDebug"); //$NON-NLS-1$ + } else if (mode.equals(ILaunchManager.RUN_MODE)) { + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseConfigToRun"); //$NON-NLS-1$ } - return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseConfigToRun"); //$NON-NLS-1$ + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.Invalid_launch_mode_1"); //$NON-NLS-1$ } @@ -266,8 +268,10 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut { protected String getLaunchSelectionDialogMessageString(List binList, String mode) { if (mode.equals(ILaunchManager.DEBUG_MODE)) { return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLaunchConfigToDebug"); //$NON-NLS-1$ + } else if (mode.equals(ILaunchManager.RUN_MODE)) { + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLaunchConfigToRun"); //$NON-NLS-1$ } - return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLaunchConfigToRun"); //$NON-NLS-1$ + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.Invalid_launch_mode_2"); //$NON-NLS-1$ } /** @@ -323,8 +327,10 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut { protected String getBinarySelectionDialogMessageString(List binList, String mode) { if (mode.equals(ILaunchManager.DEBUG_MODE)) { return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLocalAppToDebug"); //$NON-NLS-1$ + } else if (mode.equals(ILaunchManager.RUN_MODE)) { + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLocalAppToRun"); //$NON-NLS-1$ } - return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.ChooseLocalAppToRun"); //$NON-NLS-1$ + return LaunchUIPlugin.getResourceString("CApplicationLaunchShortcut.Invalid_launch_mode_3"); //$NON-NLS-1$ } /** diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchUIPluginResources.properties b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchUIPluginResources.properties index 93846210882..d2af8cae16b 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchUIPluginResources.properties +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchUIPluginResources.properties @@ -52,6 +52,9 @@ CApplicationLaunchShortcut.Launch_failed_no_binaries=Launch failed no binaries CApplicationLaunchShortcut.LaunchFailed=Launch failed CApplicationLaunchShortcut.LaunchDebugConfigSelection=Launch Debug Configuration Selection CApplicationLaunchShortcut.LaunchConfigSelection=Launch Configuration Selection +CApplicationLaunchShortcut.Invalid_launch_mode_1=Invalid launch mode +CApplicationLaunchShortcut.Invalid_launch_mode_2=Invalid launch mode. +CApplicationLaunchShortcut.Invalid_launch_mode_3=Invalid launch mode. CApplicationLaunchShortcut.ChooseLaunchConfigToDebug=Choose a launch configuration to debug CApplicationLaunchShortcut.ChooseLaunchConfigToRun=Choose a launch configuration to run CApplicationLaunchShortcut.Launch_failed_no_project_selected=Launch failed no project selected