Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324624 - Launch group: Number of entries is not reducable
Summary: Launch group: Number of entries is not reducable
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 04:20 EDT by Thomas Widmaier CLA
Modified: 2011-05-25 04:23 EDT (History)
2 users (show)

See Also:
teodor.madan: iplog-
teodor.madan: review-


Attachments
Fix (1.12 KB, patch)
2011-05-24 12:26 EDT, Teodor Madan CLA
teodor.madan: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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