Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-05-31 18:25:21 +0000
committerDarin Swanson2001-05-31 18:25:21 +0000
commit47076655b8dbceea78659535af3e013d02fbc589 (patch)
tree1d101e30bb24995dd166d0d832fc23445c682ed1
parentb4e5a47add5f51b92792776424e72ee417c6d1c9 (diff)
downloadeclipse.platform.debug-47076655b8dbceea78659535af3e013d02fbc589.tar.gz
eclipse.platform.debug-47076655b8dbceea78659535af3e013d02fbc589.tar.xz
eclipse.platform.debug-47076655b8dbceea78659535af3e013d02fbc589.zip
1GEJOBBv0_116_01
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIResources.properties2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LauncherPropertyPage.java11
2 files changed, 12 insertions, 1 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 3a440fa57..bc6a04864 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
@@ -33,7 +33,7 @@ launcher_preferences.run_debug=Run/Debug
launcher_preferences.none=none
launcher_preferences.error.title=Launcher property page
launcher_preferences.error.message=Exceptions occurred saving the launcher preferences
-
+launcher_preferences.closed_project=Launcher information is not available for a closed project
##############################################################
# Launch wizard
##############################################################
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LauncherPropertyPage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LauncherPropertyPage.java
index c3114baa6..6ef5c30e5 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LauncherPropertyPage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LauncherPropertyPage.java
@@ -36,6 +36,7 @@ public class LauncherPropertyPage extends PropertyPage implements IWorkbenchPref
private static final String RUN_DEBUG= PREFIX + "run_debug";
private static final String NONE= PREFIX + "none";
private static final String ERROR= PREFIX + "error.";
+ private static final String CLOSED_PROJECT= PREFIX + "closed_project";
protected Combo fCombo;
@@ -81,6 +82,10 @@ public class LauncherPropertyPage extends PropertyPage implements IWorkbenchPref
*/
public void createControl(Composite parent) {
+ if (!getProject().isOpen()) {
+ createForClosedProject(parent);
+ return;
+ }
// Table to choose which tags are shown in the outliner
Composite pageComponent= createComposite(parent, 1);
createLabel(pageComponent, DebugUIUtils.getResourceString(DESCRIPTION));
@@ -105,6 +110,12 @@ public class LauncherPropertyPage extends PropertyPage implements IWorkbenchPref
setControl(pageComponent);
}
+ private void createForClosedProject(Composite parent) {
+ Label label= new Label(parent, SWT.LEFT);
+ label.setText(DebugUIUtils.getResourceString(CLOSED_PROJECT));
+ label.setFont(parent.getFont());
+ setControl(label);
+ }
/**
* Utility method that creates a label instance
* and sets the default layout data.

Back to the top