| Summary: | 'Outline' view disappeared after maximizing a view | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emoffatt, Mike_Wilson |
| Version: | 1.0 | Flags: | Mike_Wilson:
pmc_approved+
remy.suen: review+ |
| Target Milestone: | 4.1 RC4 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Remy Suen
6. Click on the icon of your opened editor. 7. Click back in the 'Package Explorer' so that it minimizes again. 8. Ctrl+M. 9. Both the 'Outline' view (described in comment 0) and your editor has now disappeared. The steps below are more likely to happen in regular use. 1. Open an editor. 2. Window > New Editor. 3. Split the shared area vertically into two stacks with the 'Outline' view with the 'Outline' view on the top. You will now have a stack on top and the stack of editors below. 4. Drag an editor to the top stack. 5. Window > Reset Perspective > OK 6. Activate the 'Package Explorer'. 7. Ctrl+M. You will see the same problems described by comment 0. Created attachment 197848 [details]
Reset the ids of any shared stacks to prevent them from clashing with the ids of stacks in the perspective
The basic issue here is with how the minimized stacks locate the PartStack they're representing (which is by id). This means that non-unique stack ids can cause problems (the scenario ended up with a stack in the shared area with the id "right" via the drag and the reset made a second one in the perspective). The patch guantees that after a reset the shared stack ids are unique (ok, someone *could* make a perspective stack with the id "SharedStack 1" but it's unlikely). Created attachment 197849 [details]
Updated patch that uses the same logic as new stack creation does
(In reply to comment #5) > Created attachment 197849 [details] > Updated patch that uses the same logic as new stack creation does The id conflict problem and the scenarios described on this bug are resolved by this patch. This should not affect the functions of the compatibility layer as we are generally only concered with the id of the area instead of the ids of the model structure contained within it. Adding McQ for review... Committed in >20110613. Applied the patch. Verified in I20110613-2055. |