Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320298 - Views in editor stack goes poof when switching perspectives
Summary: Views in editor stack goes poof when switching perspectives
Status: RESOLVED WORKSFORME
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 321864
  Show dependency tree
 
Reported: 2010-07-19 12:16 EDT by Remy Suen CLA
Modified: 2011-01-06 12:33 EST (History)
1 user (show)

See Also:


Attachments

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