Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
index 3cc45fcf4..7914bc651 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
@@ -1109,6 +1109,18 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ILaunchListener,
all.addAll(fDebugHistory);
all.addAll(fRunHistory);
+ // fix for bug 14877 - remove entries with no configuration if using configs
+ if (usingConfigurationStyleLaunching()) {
+ List remove = new ArrayList();
+ Iterator iter = all.iterator();
+ while (iter.hasNext()) {
+ LaunchConfigurationHistoryElement item = (LaunchConfigurationHistoryElement)iter.next();
+ if (item.getLaunchConfiguration() == null) {
+ remove.add(item);
+ }
+ }
+ all.removeAll(remove);
+ }
Iterator iter = all.iterator();
while (iter.hasNext()) {

Back to the top