Bug 287040 - [Perspectives] Save perspective as open perspective
Summary: [Perspectives] Save perspective as open perspective
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-19 06:33 EDT by Stefan Sp. CLA
Modified: 2019-09-06 16:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sp. CLA 2009-08-19 06:33:32 EDT
Saving a perspective as an already opened perspective leads to duplicate perspectives.

Steps to reproduce:

- Open a perspective (P1)
- Open a second perspective (P2)
- Right click (in the perspective bar) perspective P1
- Choose "Save As..."
- Choose perspective P2, hit OK

Result:
In the perspective bar two perspectives are visible, both named with "P1".



Background & Additional Information:
Perspectives are identified through the id of its PerspectiveDescriptor.
By following the steps above, the perspective list in the WorkbenchPage contains two org.eclipse.ui.internal.Perspective instances which have the same (!) PerspectiveDescriptor (P1).

Subsequent errors may occur. I.e. by choosing "close" on any of the duplicate perspective. "Close" closes the first perspective (in the perspective list) to be found with the given PerspectiveDescriptor. You cannot tell which perspective will be closed, because it is dependent on the opening order of the perspectives.

So it could happen that the actual perspective P1 is closed and perspective P2 is shown, with its original layout but with the name "P1".
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:04:21 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.