Bug 22142

Summary: [Coolbar] Reset Perspective and original order bug
Product: [Eclipse Project] Platform Reporter: Lynne Kues <lynne_kues>
Component: UIAssignee: Nick Edgar <n.a.edgar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: Other   
OS: All   
Whiteboard:
Attachments:
Description Flags
code snippet none

Description Lynne Kues CLA 2002-08-03 11:33:32 EDT
Build 20020730

1. Open a new Java Perspective.
2. Customize Perspective.  Remove External Tools and Search.
3. Customize Perspective. Add Search.  Move search up to its own row.
4. Reset Perspective.

The original cool item order is not restored.  Should be fixed for 2.0.1 - 
related to correctly remembering cool item positions.
Comment 1 Lynne Kues CLA 2002-08-03 11:55:35 EDT
Coolbar manager code assumes that when resetting the perspective, the creation 
order of items does not change, but it does if one uses Customize Perspective 
to remove and then add back an item.  Need to change CoolBarManager.setLayoutTo
(CoolBarLayout) for the case when layout == null.  Attaching code change 
snippet.
Comment 2 Lynne Kues CLA 2002-08-03 11:56:01 EDT
Created attachment 1788 [details]
code snippet
Comment 3 Lynne Kues CLA 2002-08-05 11:28:31 EDT
Released change into 2.1 stream.
Comment 4 Lynne Kues CLA 2002-08-05 11:42:23 EDT
Merged and released change into 2.0.1 stream.