Bug 287040

Summary: [Perspectives] Save perspective as open perspective
Product: [Eclipse Project] Platform Reporter: Stefan Sp. <blasphemer99>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3    
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.