Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2007-05-07 18:55:12 +0000
committerCurtis Windatt2007-05-07 18:55:12 +0000
commit1bfb56e1f37732e79e851db7d4693ff38de25567 (patch)
treecf12cefb39c4d901b76bb37d402ee6410e7838f4
parentb8d05f7003a2118a6995f4a95d0ab6157fe04a1e (diff)
downloadeclipse.platform.debug-1bfb56e1f37732e79e851db7d4693ff38de25567.tar.gz
eclipse.platform.debug-1bfb56e1f37732e79e851db7d4693ff38de25567.tar.xz
eclipse.platform.debug-1bfb56e1f37732e79e851db7d4693ff38de25567.zip
Bug 184631 - no way to remove <unknown> launches
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
index 08378e02c..7e91c895f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
@@ -19,4 +19,6 @@ ContextRunner_15=...
#The possible values of {0} is the name of the resource that is the current context i.e. Main.java
ContextRunner_16={0}
+
+#The possible values for {0} are the names of the launch configurations in the current workspace
LaunchingResourceManager_0={0} (already running)
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
index 8e9e1b55b..0ab90803a 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/LaunchingResourceManager.java
@@ -225,10 +225,14 @@ public class LaunchingResourceManager implements IPropertyChangeListener, IWindo
private String appendLaunched(ILaunchConfiguration config) {
ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches();
boolean launched = false;
+ ILaunchConfiguration tmp = null;
for(int i = 0; i < launches.length; i++) {
- if(!launches[i].isTerminated() && launches[i].getLaunchConfiguration().equals(config)) {
- launched = true;
- break;
+ tmp = launches[i].getLaunchConfiguration();
+ if(tmp != null) {
+ if(!launches[i].isTerminated() && tmp.equals(config)) {
+ launched = true;
+ break;
+ }
}
}
if(launched) {

Back to the top