Bug 108687 - [Perspectives] Switch perspectives dynamically based on current project
Summary: [Perspectives] Switch perspectives dynamically based on current project
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 108688 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-02 10:47 EDT by Terence Miller CLA
Modified: 2019-09-06 15:38 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 Terence Miller CLA 2005-09-02 10:47:16 EDT
If you develop a java project and a c++ project (cdt) in paralell you will have
different perspectives, respectively java and c++. When changing the project
tree in package explorer from java to c++ project or the other way round the
perspective is not changed also to the corresponding language. You have to
change the perspective manually, but it should be saved depending to the project.
Comment 1 Kim Horne CLA 2005-09-06 09:00:25 EDT
I'm not sure I follow.  What action are you suggesting should change the active perspective?
Comment 2 Kim Horne CLA 2005-09-06 09:00:42 EDT
*** Bug 108688 has been marked as a duplicate of this bug. ***
Comment 3 Kim Horne CLA 2005-09-09 10:35:35 EDT
Marking as WORKSFORME until more information is supplied.
Comment 4 Terence Miller CLA 2005-09-09 10:54:44 EDT
Because the perspective feature in eclipse has for default nothing todo with the
used programm language (java or c,c++(cdt) ) the easiest way would be to have
reminded the last perspective used on a project. If you have several projects
opened, for example one in java another in c++, eclipse should save the
perspective for the current project and changing to the other project restore
the formerly saved one here.
The event( save perspective for current project/restore perspective for just now
selected project) event can be triggered by changing source code file tab,
depending in which project the ne selected file is hosted. Then if using c++
perspectives for project will be restored if changing from java code to c++ code.
Comment 5 Kim Horne CLA 2005-09-09 11:01:27 EDT
I'm still not sure what you're asking for exactly.  Passing onto Nick.
Comment 6 Nick Edgar CLA 2005-09-09 11:40:36 EDT
If I understand Terence correctly, he wants the current perspective to change
depending on the preferred perspective of the current project (i.e. project
containing file being edited, or resource selected in Package Explorer or
Navigator view).

If done right, this kind of automatic mode switching could help the user, but it
could also be very disruptive.  E.g. if I'm in the Debug perspective, I probably
don't want it to switch back to Java perspective when I open a Java file from
the Debug view.
Comment 7 Terence Miller CLA 2005-09-09 11:57:56 EDT
Yep, that is what i meant.
Why should someone change from Debugging in a Project change to another project?

However this could be a solution for this problem.
The save/restore could could look like this.

On project change event:
if (just now selected Project!=currentProject) {
If (current project mode!= Debug Mode) {save perspective}
If (just now selected Project mode!= Debug Mode) {restore perspective}
}

It would also be possible to have two user perspectives auto backuped for every
project (normal mode and debug mode), such depending on the project mode the
corresponding last saved perspective for this mode will be restored.

Of course this auto save restore perspective feature shall be optional as config
switch. But when developing in two different languages (java & c++) in two or
more projects, (java<>jnic++ - whatever) is is quite useful not to have change
from c++ two java perspective and vice versa during code editing.
Comment 8 Nick Edgar CLA 2005-09-09 12:11:10 EDT
This is an enhancement request, and is not Linux-specific.
Comment 9 Terence Miller CLA 2005-09-09 14:45:00 EDT
-
Comment 10 Nick Edgar CLA 2005-09-09 16:51:16 EDT
It's not really hardware-specific either.
Comment 11 Nick Edgar CLA 2006-03-15 11:46:55 EST
Reassigning bugs in component areas that are changing ownership.
Comment 12 Paul Webster CLA 2006-09-28 11:01:13 EDT
There are currently no plans to work on this feature.

PW
Comment 13 Denis Roy CLA 2007-06-22 09:33:03 EDT
Changes requested on bug 193523
Comment 14 Eclipse Webmaster CLA 2019-09-06 15:38:26 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.