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

Bug 320298

Summary: Views in editor stack goes poof when switching perspectives
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: bokowski
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 321864    

Description Remy Suen CLA 2010-07-19 12:16:45 EDT
1. File > New > Untitled Text File
2. Drag the 'Outline' view next to that new editor.
3. Window > Open Perspective > Debug
4. Notice that the view is separated and on the side and not as part of the editor stack.
5. Window > Open Perspective > Java
6. The 'Outline' view is missing.
7. Window > Show View > Outline
8. It does return appropriately.
Comment 1 Remy Suen CLA 2010-07-19 12:17:05 EDT
(In reply to comment #0)
> 8. It does return appropriately.

Well, albeit in its original defined position and not in the editor stack.
Comment 2 Boris Bokowski CLA 2010-07-21 13:27:24 EDT
This is a side-effect of being able to drag a view into the editor stack. I agree that the behaviour is a little surprising, but since the editor area is shared between all perspectives, we need to do *something* when you open a new perspective, or reset an existing perspective. Currently, because the code path for both these cases is the same, we err on the side of producing a perspective that looks exactly as expected, even if it effectively means removing views from other perspectives that were in the editor area.
Comment 3 Eric Moffatt CLA 2010-08-09 10:31:11 EDT
I think we should consider the alternative approach of changing the perspective construction/reset behavior to determine if the view is already 'there' (in 'addView[Placeholder]'and to not create the MPlaceholder. Note that there are two possible ways for this to occur:

1) The View is in the Editor Area
2) The View is in a location *outside* the perspective stack. We intend to have the 'stickyRight' stack located directly under the MWindow so that the Help view(s) would be in the same spot regardless of the perspective.
Comment 4 Remy Suen CLA 2011-01-06 12:33:28 EST
No longer a problem. The 'Outline' view will stay in the shared area even after you switch to the 'Debug' perspective.