Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeodor Madan2011-05-25 03:21:21 -0400
committerTeodor Madan2011-05-25 03:21:21 -0400
commit5c31ff1458c1c1809346cd193a5ce024db8ed552 (patch)
tree4a667f952c257d1d00dc1f6fd3f5cf6b5b3cd3da /launch/org.eclipse.cdt.launch
parentffc95c0d8d0d95a3b6e790879cd2b44fbd7711b6 (diff)
downloadorg.eclipse.cdt-5c31ff1458c1c1809346cd193a5ce024db8ed552.tar.gz
org.eclipse.cdt-5c31ff1458c1c1809346cd193a5ce024db8ed552.tar.xz
org.eclipse.cdt-5c31ff1458c1c1809346cd193a5ce024db8ed552.zip
Bug 324624 - Launch group: Number of entries is not reducible
Diffstat (limited to 'launch/org.eclipse.cdt.launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java
index e914e2d1e3..0ba111db25 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java
@@ -448,9 +448,10 @@ public class MultiLaunchConfigurationTabGroup extends AbstractLaunchConfiguratio
}
public void initializeFrom(ILaunchConfiguration configuration) {
- MultiLaunchConfigurationDelegate.createLaunchElements(configuration, input);
+ // replace the input from previously shown launch configurations
+ input = MultiLaunchConfigurationDelegate.createLaunchElements(configuration, new ArrayList<LaunchElement>());
if (treeViewer != null) {
- treeViewer.refresh(true);
+ treeViewer.setInput(input);
}
}

Back to the top