Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358710

Summary: [FastViews] Drag Fast View to maximized view stack and restore it, the dragged view is duplicated and corrupt
Product: [Eclipse Project] Platform Reporter: Missing name <andrea-thelen>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug
Attachments:
Description Flags
This is the RCP Mail example with some changes that demonstrate the problem. none

Description Missing name CLA 2011-09-23 07:47:59 EDT
Build Identifier: I20100608-0911

If you have a view maximized and you open another view, the newly opened view is shown as fast view. If you now drag the fast view to the maximized view stack it is placed there. When you now restore the stack, there are two instances of the newly opened view. One is located if the view stack where it was dragged, the other one were the original fast view was first put. If you close one of them, the second is corrupt and your application have to forcefully closed.
This only happens with views with a secondaryID not null. You cannot use Window > Show View > Other to reproduce this. (These views always have the secondaryID null).

Reproducible: Always

Steps to Reproduce:
1. Maximize a view.
2. Open another view with a secondary view id (using the showView-method of WorkbenchPage). It is shown as fast view.
3. Drag the newly opened view to the maximized view stack.
4. Restore the maximized view stack.
5. There are two versions of the newly opened view.
Comment 1 Missing name CLA 2011-09-23 11:05:51 EDT
Created attachment 203912 [details]
This is the RCP Mail example with some changes that demonstrate the problem.

I changed only one thing from the RCP mail template. If you press the envelope, the eclipse console view is opened. 
Run the example, maximize the Message-View, press the envelope, drag the console view to the maximized view stack, restore the view stack. Then minimize and restore the view stack again: two console views appear and the application is corrupt.
Comment 2 Lars Vogel CLA 2019-11-14 03:28:40 EST
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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.