Project: Eclipse_Platform_UI
Bug 6362 Widget disposed exception on tree collapse of Nav view
Reported: 2001-11-27 13:55:19 | Status: closed fixed

Build: 2001-11-16 Open the Navigator view Expand the org.eclipse.ui project Expand Eclipse UI folder Expand org folder Expand eclipse folder Expand ui folder Select IActionBars.java file Select rename from the context menu Press esc key to cancel editing Collapse the tree at org.eclipse.ui project level You should get an internal error message about a widget being disposed. I've included the .log content below. It seems the editor is being sent setVisible but it is already disposed. ------------------- Log: Tue Nov 27 13:49:34 EST 2001 1 org.eclipse.core.resources 4 Unhandled exception caught in event loop. Log: Tue Nov 27 13:49:34 EST 2001 4 org.eclipse.ui 0 Widget is disposed org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:1877) at org.eclipse.swt.SWT.error(SWT.java:1809) at org.eclipse.swt.widgets.Widget.error(Widget.java:366) at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Control.setVisible(Control.java(Compiled Code)) at org.eclipse.swt.custom.TreeEditor$1.treeCollapsed(TreeEditor.java:78) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java(Compiled Code)) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java(Compiled Code)) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java(Compiled Code)) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java(Compiled Code)) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java(Compiled Code)) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:712) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/RenameResourceAction.java