Bug 106625 - [WorkbenchParts] Perspective does not remember active part when switching
Summary: [WorkbenchParts] Perspective does not remember active part when switching
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-08-10 10:17 EDT by Randy Hudson CLA
Modified: 2019-10-25 19:03 EDT (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 Randy Hudson CLA 2005-08-10 10:17:23 EDT
1) Open debug perspective and activate the breakpoints view
2) Open the java perspective and activate the packages explorer.
3) Switch back to the debug perspective.

Note that the editorpane is activated instead of the breakpoints view.

4) Click on breakpoints view again
5) Switch back to java perspective

Note that the editorpane is activated again instead of package explorer.
Comment 1 Kim Horne CLA 2005-08-10 11:19:07 EDT
I THINK this is the intended behavior.  If the active part doesn't exist in the new perspective then the editor 
area becomes the new part.
Comment 2 Randy Hudson CLA 2005-08-10 11:27:24 EDT
It's actually random, it's not always the editor area.
Comment 3 Randy Hudson CLA 2005-08-10 11:32:28 EDT
Whatever parts the two perspectives have in common (in this case the editorpane 
was first), the MRU part from that intersection gets activated. It might be the 
console or the search view or something else.

IMO, stacked perspectives should behave like separate windows, the only 
possible exception being when the currently active part is visible in the new 
perspective.
Comment 4 Paul Webster CLA 2005-08-10 19:30:39 EDT
I think that is how it's designed ... it tries to activate the current active
part ... if that part is closed because of the perspective, it will try to find
the MRU part that is visible in the perpspective.

There might be some revisting of this algorithm, see bug 91487

PW
Comment 5 Randy Hudson CLA 2005-08-11 10:13:37 EDT
> part ... if that part is closed because of the perspective, it will try to 
find
> the MRU part that is visible in the perpspective.

Except it doesn't do that. It finds the MRU part which was ALSO present in the 
previous perspective. This could be potentially any part so the behavior is not 
useful.

What is needed is better management of the global  MRU list or separate lists 
for each perspective. See also bug 89910.
Comment 6 Paul Webster CLA 2006-09-28 14:08:03 EDT
Is this still a problem in 3.3?

PW
Comment 7 Randy Hudson CLA 2006-09-28 14:54:06 EDT
yes
Comment 8 Udo Walker CLA 2015-09-24 12:28:17 EDT
This is fixed in Eclipse Mars.
Comment 9 Eclipse Genie CLA 2019-10-25 19:03:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.