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

Bug 72253

Summary: [DetachedViews] Detach views should be minimizable
Product: [Eclipse Project] Platform Reporter: Pascal Rapicault <pascal>
Component: UIAssignee: Eric Moffatt <emoffatt>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: nikolaymetchev
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Pascal Rapicault CLA 2004-08-19 09:01:06 EDT
It could be interesting to enable the minimization of stack of detached views in
order to more easily save space.
Comment 1 Nikolay Metchev CLA 2004-08-24 06:52:09 EDT
not only minimize should be enable but also maximization. This is useful if you 
have more than one monitor.
Comment 2 Stefan Xenos CLA 2005-05-26 03:34:49 EDT
Fixed both the minimize and maximize issues in the patch for bug 58003.
Comment 3 Tod Creasey CLA 2005-05-27 14:19:35 EDT
Verified in 20050527-0900
Comment 4 Nikolay Metchev CLA 2005-06-01 08:48:25 EDT
on windows XP this functionality is only available through right clicking on the
title bar and selecting minimize/maximise in the popup menu that shows. The only
button in the top right of the window that is available is close. Was this
intentional and can the minimize/maximise buttons be added?
Comment 5 Stefan Xenos CLA 2005-06-01 14:15:44 EDT
The buttons are provided by the OS. We set the flag that asks SWT for the
minimize affordance, and (presumably) SWT passes it on to the OS. I suspect that
you'd need to ask Microsoft for that enhancement.
Comment 6 Stefan Xenos CLA 2005-06-03 17:54:41 EDT
Reopening. This enhancement was rolled back due to feedback from RC1.
Comment 7 Nikolay Metchev CLA 2005-06-13 08:44:40 EDT
It seems that the feature wasn't removed completely in eclipse 3.1RC2. It is
still possible to maximize (but not minimize). Also if you try and dock an
editor window onto the detached view then the whole thing goes haywire. There is
even a stack trace:
--------------------------------------------------------
java.lang.ClassCastException: org.eclipse.ui.internal.EditorPane
	at org.eclipse.ui.internal.ViewStack.isMoveable(ViewStack.java:111)
	at org.eclipse.ui.internal.PartStack$1.isPartMoveable(PartStack.java:115)
	at
org.eclipse.ui.internal.presentations.SystemMenuDetach.update(SystemMenuDetach.java:34)
	at
org.eclipse.ui.internal.presentations.SystemMenuDetach.setPane(SystemMenuDetach.java:53)
	at org.eclipse.ui.internal.ViewStack.updateActions(ViewStack.java:103)
	at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1087)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
	at org.eclipse.ui.internal.PartStack$PartStackDropResult.drop(PartStack.java:191)
	at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:130)
	at org.eclipse.ui.internal.PartStack.dragStart(PartStack.java:1368)
	at org.eclipse.ui.internal.PartStack$1.dragStart(PartStack.java:107)
	at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:111)
	at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
	at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:280)
	at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleDragStarted(AbstractTabFolder.java:364)
	at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder$2.handleEvent(AbstractTabFolder.java:68)
	at
org.eclipse.ui.presentations.PresentationUtil.handleMouseMove(PresentationUtil.java:96)
	at org.eclipse.ui.presentations.PresentationUtil.access$4(PresentationUtil.java:89)
	at
org.eclipse.ui.presentations.PresentationUtil$2.handleEvent(PresentationUtil.java:61)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:844)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3058)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2691)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1716)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1680)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:365)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
-----------------------------------------------------------------------------
Comment 8 Stefan Xenos CLA 2005-06-13 15:58:43 EDT
The maximize feature was kept intentionally. Minimize was removed because
removing the shell title made it impossible to tell which view was minimized.
The CCE is a bug that should be addressed for RC3.
Comment 9 Nikolay Metchev CLA 2005-06-27 06:42:51 EDT
The CCE is still present in eclipse 3.1RC4
Comment 10 Eric Moffatt CLA 2007-06-25 10:53:29 EDT

*** This bug has been marked as a duplicate of bug 66777 ***