Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324624

Summary: Launch group: Number of entries is not reducable
Product: [Tools] CDT Reporter: Thomas Widmaier <widmaier>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: pawel.1.piech, teodor.madan
Version: 8.0Flags: teodor.madan: iplog-
teodor.madan: review-
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix teodor.madan: iplog-

Description Thomas Widmaier CLA 2010-09-07 04:20:05 EDT
Build Identifier: M20100901-0800

The number of launch items within a number of launch groups is always the same.
If to one launch group a new launch item is added, this very item is also visible within the other launch groups but disabled.
It is not possible to remove the newly added item. 
Happens only if number of launch groups is > 1.
This behaviour does not happen with an older eclipse (Galileo 20100218-1602).



Reproducible: Always

Steps to Reproduce:
1.Create Launch group, add some launch items
2.Duplicate launch group, to have more than one launch group
3.Add new launch item to one of the groups
-> Added item also is added to other group, removing not possible.
Comment 1 Teodor Madan CLA 2011-05-24 12:26:22 EDT
Created attachment 196464 [details]
Fix

Since Eclipse 3.6. a single ILaunchConfigurationTab instance object can be re-used to display different ILaunchConfiguration instances. 

Side-effect is that member objects should always be initialize completely in ILaunchConfigurationTab#initializeFrom. The fix will set the new input in the tree viewer.
Comment 2 Elena Laskavaia CLA 2011-05-24 16:57:48 EDT
Comment on attachment 196464 [details]
Fix

+1
Comment 3 Teodor Madan CLA 2011-05-25 03:22:50 EDT
Commited on HEAD. Thanks Alena for review.
Comment 4 CDT Genie CLA 2011-05-25 04:23:07 EDT
*** cdt cvs genie on behalf of tmadan ***
Bug 324624 - Launch group: Number of entries is not reducible

[*] MultiLaunchConfigurationTabGroup.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/MultiLaunchConfigurationTabGroup.java?root=Tools_Project&r1=1.13&r2=1.14