Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjszursze2002-04-02 17:43:33 -0500
committerjszursze2002-04-02 17:43:33 -0500
commitaa13c88765c8037c56a96572143bf2ee14443ac2 (patch)
treeebf2ee5b7b92f1ebcf738cf377242dbb6e35c3e8 /org.eclipse.debug.core
parente0afc7536aac420332c3eaae2300755c14093da8 (diff)
downloadeclipse.platform.debug-aa13c88765c8037c56a96572143bf2ee14443ac2.tar.gz
eclipse.platform.debug-aa13c88765c8037c56a96572143bf2ee14443ac2.tar.xz
eclipse.platform.debug-aa13c88765c8037c56a96572143bf2ee14443ac2.zip
fix for #11733
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
index 8a94dc136..beb82384d 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
@@ -1235,7 +1235,14 @@ public class LaunchManager implements ILaunchManager, IResourceChangeListener {
protected void projectOpened(IProject project) throws CoreException {
List configs = findLaunchConfigurations(project);
if (!configs.isEmpty()) {
- getAllLaunchConfigurations().addAll(configs);
+ List allList = getAllLaunchConfigurations();
+ Iterator iterator = configs.iterator();
+ while (iterator.hasNext()) {
+ ILaunchConfiguration config = (ILaunchConfiguration) iterator.next();
+ if (!allList.contains(config)) {
+ allList.add(config);
+ }
+ }
}
}

Back to the top