Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjszursze2001-06-06 14:25:25 +0000
committerjszursze2001-06-06 14:25:25 +0000
commit8096df7df50dd26f73828a87a488cee33eb64529 (patch)
tree8bccff3919519f21fc1f2bb353f56e41bbf12943
parente28d7baa8612ea6b1c7c1b377307aac593ba4ea8 (diff)
downloadeclipse.platform.debug-8096df7df50dd26f73828a87a488cee33eb64529.tar.gz
eclipse.platform.debug-8096df7df50dd26f73828a87a488cee33eb64529.tar.xz
eclipse.platform.debug-8096df7df50dd26f73828a87a488cee33eb64529.zip
1GESV5F: ITPDUI:WIN2000 - Wording on "launcher selection page"
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties3
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardSelectionPage.java13
2 files changed, 13 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties
index 0d0805d40..37d4a5e79 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties
@@ -54,7 +54,8 @@ launch_wizard_project_page.pattern_label=Enter a pattern to select a range of pr
launch_wizard_page.title=Select Launcher
launch_wizard_page.launcher= Select a launcher:
launch_wizard_page.select_error_launcher=No launchers registered.
-launch_wizard_page.default_launcher=Set as &default launcher
+launch_wizard_page.default_launcher=Set as &default launcher for project \"{0}\"
+launch_wizard_page.unknown=<unknown>
launch_wizard_node.error.title=Problem Opening Wizard
launch_wizard_node.error.message=The selected wizard could not be started.
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardSelectionPage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardSelectionPage.java
index 0a1e1f5c8..78bc15917 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardSelectionPage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardSelectionPage.java
@@ -5,6 +5,8 @@ package org.eclipse.debug.internal.ui;
* All Rights Reserved.
*/
+import java.text.MessageFormat;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
@@ -28,6 +30,7 @@ public class LaunchWizardSelectionPage extends WizardSelectionPage {
private static final String PREFIX= "launch_wizard_page.";
private static final String LAUNCHER= PREFIX + "launcher";
+ private static final String UNKNOWN= PREFIX + "unknown";
private static final String DEFAULT_LAUNCHER= PREFIX + "default_launcher";
private static final String SELECT_ERROR_LAUNCHER= PREFIX + "select_error_launcher";
/**
@@ -140,9 +143,15 @@ public class LaunchWizardSelectionPage extends WizardSelectionPage {
}
});
fLaunchersList.setInput(fLaunchersList);
-
fSetAsDefaultLauncher= new Button(root, SWT.CHECK);
- fSetAsDefaultLauncher.setText(DebugUIUtils.getResourceString(DEFAULT_LAUNCHER));
+ IProject project= ((LaunchWizard)getWizard()).getProject();
+ String projectName= "";
+ if (project != null) {
+ projectName= project.getName();
+ } else {
+ projectName= DebugUIUtils.getResourceString(UNKNOWN);
+ }
+ fSetAsDefaultLauncher.setText(MessageFormat.format(DebugUIUtils.getResourceString(DEFAULT_LAUNCHER), new String[] {projectName}));
}
/**

Back to the top