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

Bug 331630

Summary: [DetachedView] Allow to restore second window with views
Product: [Eclipse Project] Platform Reporter: Aaron Digulla <digulla>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: mauromol, pwebster, remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Aaron Digulla CLA 2010-12-02 03:55:27 EST
Build Identifier: 3.6.1

When a window with views is minimized, there is no way to get it back the way it was.

Reproducible: Always

Steps to Reproduce:
1. Drag the Console View outside of Eclipse
2. Drag the Problems View into the same window 
3. Minimize the window

-> The window vanishes without a trace. Minimize works more like "close all views"

4. Open the console view again. The view will open in an external window as before but the problem view will be gone.

I think the most simple fix would be to make the second window one which is managed by the desktop window manager (i.e. give it a title and make it show up in the taskbar). Minimizing it should not trigger any action by Eclipse.

When a view is opened that is in the window, restore it.

The same should probably apply for settings like "show console on output/error".
Comment 1 Remy Suen CLA 2010-12-03 16:53:07 EST
(In reply to comment #0)
> 3. Minimize the window

How do you minimize the detached window? I can only close it or maximize it. I am on Windows 7.
Comment 2 Aaron Digulla CLA 2010-12-05 16:22:45 EST
I'm on Linux (kubuntu).

But I would really prefer to be able to hide the second window since it comes to front with Eclipse and it behaves different from the JUnit compare dialog, for example.
Comment 3 Mauro Molinari CLA 2014-08-08 09:57:21 EDT
In Eclipse I20140606-1215 under Windows 7, the detached windows can't be minimized (see also bug #322580 comment #3).
In Linux Mint 17 MATE, apparently they can't be minimized either (their title bar just have the "X" button to close), but if you right click on their title bar there's the "Minimize" option that actually minimizes the detached window: it disappear (because that detached window is a child window and is not shown in Alt+TAB or in task bar[1]), but if you make it appear again using Window | Show View and choosing one of the views you had put in it, it is restored, together with all the other views in there. So, it seems like an actual minimization takes place, rather than a closing.

I'll retry this on Linux Mint 16 KDE to see what happens in KDE.

[1] = unless you restart Eclipse after leaving those views open, see bug 227139
Comment 4 Mauro Molinari CLA 2014-08-29 05:21:55 EDT
I tested this even on Linux Mint 16 KDE and still can't reproduce the described behaviour: the Problems view is present in the restored detached window together with the Console view, after issuing a Window | Show View | Console.

Since I cannot determine when this was fixed, I'm closing as "WORKSFORME". Please reopen with details if you can still reproduce.
Comment 5 Aaron Digulla CLA 2014-09-01 07:59:05 EDT
Update: I'm now on Kubuntu 14.04 with KDE 4.13.3 (version of the kdelibs-bin package).

On this version of Linux, I get three buttons (minimize, maximize and close) in the top right corner of the detached view window.

When I minimize the window, I now get an entry in the KDE bar (or whatever that thing is called) along with the Eclipse main window (the detached view simply doesn't have a title). I can restore the window from there without losing any views.

So it also works for me, now with Eclipse Kelper SR2 (Build id: 20140224-0627)