Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-04-05 14:34:18 +0000
committerMichael Rennie2011-04-05 14:34:18 +0000
commit818be6bd70efbdfb348b83152e2a5fa0eac0c418 (patch)
tree4204d906ff73fdfd3eedd1e56932e873ccbd7f01
parent054da9e9796419cf23e38df160355c3adb90fa1b (diff)
downloadeclipse.platform.debug-818be6bd70efbdfb348b83152e2a5fa0eac0c418.tar.gz
eclipse.platform.debug-818be6bd70efbdfb348b83152e2a5fa0eac0c418.tar.xz
eclipse.platform.debug-818be6bd70efbdfb348b83152e2a5fa0eac0c418.zip
Bug 341638 - LaunchConfigurationsDialog#restoreExpansion() should not pass same element more than once
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
index 32c159f88..97471f4a2 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
@@ -13,6 +13,7 @@ package org.eclipse.debug.internal.ui.launchConfigurations;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
@@ -1179,7 +1180,7 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
if(value != null) {
String[] nodes = value.split(DELIMITER);
TreeItem[] items = fLaunchConfigurationView.getTreeViewer().getTree().getItems();
- ArrayList toexpand = new ArrayList();
+ HashSet toexpand = new HashSet();
// if we have a selection make sure it is expanded
if(fInitialSelection != null && !fInitialSelection.isEmpty()) {
Object obj = fInitialSelection.getFirstElement();

Back to the top