Project: JDT
Bug 230857 [breadcrumb] Widget disposed exception on shutdown if drop down open
Reported: 2008-05-07 05:59:01 | Status: verified fixed

I20080506-0842 Got the following when I did shutdown eclipse while a drop down was open on OSX. I can not reproduce, no harm done. But throwing an exception on shutdown is not very nice. !ENTRY org.eclipse.ui.workbench 4 2 2008-05-07 11:13:44.429 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:3773) at org.eclipse.swt.SWT.error(SWT.java:3691) at org.eclipse.swt.SWT.error(SWT.java:3662) at org.eclipse.swt.widgets.Widget.error(Widget.java:679) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:338) at org.eclipse.swt.widgets.Control.getShell(Control.java:1357) at org.eclipse.jdt.internal.ui.javaeditor.breadcrumb.BreadcrumbItemDropDown$10.widgetDisposed(BreadcrumbItemDropDown.java:511) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1557) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1581) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1562) at org.eclipse.swt.widgets.Widget.release(Widget.java:1427) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:668) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1273) at org.eclipse.swt.widgets.Widget.release(Widget.java:1430) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:668) at org.eclipse.jface.window.Window.close(Window.java:335) at org.eclipse.jface.window.ApplicationWindow.close(ApplicationWindow.java:306) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1618) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:716) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:692) at org.eclipse.ui.internal.WorkbenchWindow$3.run(WorkbenchWindow.java:808) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:806) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:913) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:910) at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:839) at org.eclipse.ui.internal.Workbench$23.run(Workbench.java:1083) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1081) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1053) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:713) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:692) at org.eclipse.ui.internal.WorkbenchWindow$3.run(WorkbenchWindow.java:808) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:806) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:741) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:687) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:91) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1557) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1581) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566) at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:436) at org.eclipse.swt.widgets.Shell.kEventWindowClose(Shell.java:1008) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2033) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4148) at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2394) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2210) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:489) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/breadcrumb/BreadcrumbItemDropDown.java