Project: Eclipse_Platform_UI
Bug 26392 [Dialogs] Widget is diposed upon cancel of Open Resource dialog
Reported: 2002-11-14 14:11:13 | Status: closed fixed

build 20021114 SunOs 5.8 This may be a problem on other platforms, but since eclipse on solaris is soo slow, I am only able to reproduce it on solaris (perhaps other motif versions as well) steps to reproduce: 1. Select the Navigator view 2. Open the "Open Resource" dialog (either Ctrl-Shift-R or Navigate->Open Resource) 3. Time-sensitve step! Before the dialog loads the list of resources in the list box, select the cancel button. Get a widget is disposed error logged to the console. If you wait a few seconds for the list box to become populated, the error does not occur. But if a user inadvertently opens the dialog, and closes it right away, they get the error. Also: this does not happen with the Open Type dialog, which appears to have a similar functionality. Stack trace: org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:2180) at org.eclipse.swt.SWT.error(SWT.java:2110) at org.eclipse.swt.widgets.Widget.error(Widget.java:290) at org.eclipse.swt.widgets.Control.getDisplay(Control.java:629) at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:453) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:228) at org.eclipse.swt.widgets.Table.getItemCount(Table.java:862) at org.eclipse.ui.internal.dialogs.ResourceListSelectionDialog$1.run(ResourceListSelectionDialog.java:61) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:31) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:94) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1780) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1596) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1418) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:831) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceListSelectionDialog.java