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

Bug 356653

Summary: No close button in a detached window's shell
Product: [Eclipse Project] Platform Reporter: Konstantin Komissarchik <konstantin>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, emoffatt, remy.suen
Version: 4.2   
Target Milestone: 4.3 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screen Capture none

Description Konstantin Komissarchik CLA 2011-09-02 20:24:35 EDT
Using Eclipse 4.2 M1...

1. Open a second workbench window.
2. Open a file in editor.
3. Try to move the opened editor between the two windows.

What I am seeing is that instead of ending up in the second window, the editor ends up in a window of its own. This window has no title or controls. I could not find any means to close it. The only that helps is restarting Eclipse.
Comment 1 Remy Suen CLA 2011-09-02 21:04:57 EDT
(In reply to comment #0)
> What I am seeing is that instead of ending up in the second window, the editor
> ends up in a window of its own. This window has no title or controls. I could
> not find any means to close it.

Please attach a screenshot. Isn't it in a tab folder similar to a detached view in Eclipse 3.x?
Comment 2 Konstantin Komissarchik CLA 2011-09-02 21:20:36 EDT
Created attachment 202701 [details]
Screen Capture

Comparing with 3.8, I observe the following:

1. It is possible to move an editor from one window to another in 3.x. In 4.2, the editor always turns into detached view mode. I have not been successful at moving an editor between windows.

2. In 3.8, the detached view window has the close button in the title area of the window. No close button in 4.2.

3. In both 3.8 and 4.2, clicking on the X in the tab will close the window.
Comment 3 Remy Suen CLA 2011-09-02 21:24:30 EDT
(In reply to comment #2)
> 1. It is possible to move an editor from one window to another in 3.x. In 4.2,
> the editor always turns into detached view mode. I have not been successful at
> moving an editor between windows.

This is covered by bug 346009.

> 2. In 3.8, the detached view window has the close button in the title area of
> the window. No close button in 4.2.

We will use this bug for this problem.
Comment 4 Remy Suen CLA 2011-09-06 08:37:37 EDT
(In reply to comment #2)
> 2. In 3.8, the detached view window has the close button in the title area of
> the window. No close button in 4.2.

Eric, can we add this back for 4.x?
Comment 5 Eric Moffatt CLA 2011-09-06 16:24:20 EDT
I suppose so...IIRC I removed it because of comments like those on bug 78965.

While they deal mostly with ESC handling they also apply to the window as well.

Now that we can have complete sashed structures inside a DW it's even worse. What does hitting the 'x' really mean ? The only answer I can make sense of is that it means to close all the views/editors in the window as a compound operation (so that if there are multiple 'dirty' parts the user only gets one prompt...does this make sense ?
Comment 6 Eric Moffatt CLA 2013-05-09 10:07:09 EDT
Marking to verify in RC1...
Comment 7 Dani Megert CLA 2013-05-14 10:21:30 EDT
Marking as WORKSFORME. I can't see in this bug that any fix went in.