Project: Eclipse_Platform_UI
Bug 62482 [Presentations] Widget is disposed rearranging windows
Reported: 2004-05-17 10:29:05 | Status: resolved fixed

I was rearranging winodws in the Java perspective and got the following exception. !ENTRY org.eclipse.ui 4 0 May 17, 2004 10:14:12.311 !MESSAGE Widget is disposed !STACK 0 org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:2689) at org.eclipse.swt.SWT.error(SWT.java:2614) at org.eclipse.swt.SWT.error(SWT.java:2585) at org.eclipse.swt.widgets.Widget.error(Widget.java:381) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:283) at org.eclipse.swt.widgets.Control.getParent(Control.java:885) at org.eclipse.ui.internal.presentations.PaneFolder.layout (PaneFolder.ja va:327) at org.eclipse.ui.internal.presentations.DefaultPartPresentation.layout ( DefaultPartPresentation.java:660) at org.eclipse.ui.internal.presentations.DefaultPartPresentation.setBoun ds(DefaultPartPresentation.java:872) at org.eclipse.ui.internal.PartStack.setBounds(PartStack.java:880) at org.eclipse.ui.internal.LayoutTree.setBounds(LayoutTree.java:190) at org.eclipse.ui.internal.LayoutTreeNode.setBounds (LayoutTreeNode.java: 372) at org.eclipse.ui.internal.LayoutTreeNode.setBounds (LayoutTreeNode.java: 296) at org.eclipse.ui.internal.PartSashContainer.resizeSashes (PartSashContai ner.java:620) at org.eclipse.ui.internal.PartSashContainer.addChild (PartSashContainer. java:332) at org.eclipse.ui.internal.ViewSashContainer.addChild (ViewSashContainer. java:280) at org.eclipse.ui.internal.PartSashContainer.add (PartSashContainer.java: 928) at org.eclipse.ui.internal.PartSashContainer.add (PartSashContainer.java: 259) at org.eclipse.ui.internal.PartSashContainer.addEnhanced (PartSashContain er.java:220) at org.eclipse.ui.internal.PartSashContainer.add (PartSashContainer.java: 192) at org.eclipse.ui.internal.PerspectiveHelper.derefPart (PerspectiveHelper .java:537) at org.eclipse.ui.internal.ViewSashContainer.derefPart (ViewSashContainer .java:262) at org.eclipse.ui.internal.PartSashContainer.stack (PartSashContainer.jav a:819) at org.eclipse.ui.internal.PartSashContainer.dropObject (PartSashContaine r.java:796) at org.eclipse.ui.internal.PartSashContainer$SashContainerDropTarget.dro p(PartSashContainer.java:110) at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:128) at org.eclipse.ui.internal.PartStack.dragStart(PartStack.java:1116) at org.eclipse.ui.internal.PartStack$1.dragStart(PartStack.java:78) at org.eclipse.ui.internal.presentations.DefaultPartPresentation$10.hand leEvent(DefaultPartPresentation.java:308) at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove (Present ationUtil.java:89) at org.eclipse.ui.presentations.PresentationUtil.access$4 (PresentationUt il.java:83) at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent (Presentat ionUtil.java:55) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2716) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.jav a:253) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:97 ) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformAct ivator.java:299) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.ja va:256) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.ja va:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:184) at org.eclipse.core.launcher.Main.run(Main.java:637) at org.eclipse.core.launcher.Main.main(Main.java:621) Widget is disposed

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartPane.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewPane.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dnd/SwtUtil.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/DefaultPartPresentation.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/PaneFolder.java