Project: Eclipse_Platform_UI
Bug 4228 Widget is disposed error (1GKCZQM)
Reported: 2001-10-10 23:08:11 | Status: resolved fixed

Browsing files in the Java Hierarchy Perspective with the hierarchy view on the workbench sidebar. When I switch between editors using the F3 key on types, I occasionally get an internal error (stack trace below). After the error, I noticed that the outline view stops updating when I switch beween editors. Log: Thu Sep 20 11:50:35 EDT 2001 2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in: org.eclipse.ui. org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:1700) at org.eclipse.swt.SWT.error(SWT.java:1741) at org.eclipse.swt.widgets.Widget.error(Widget.java:262) at org.eclipse.swt.widgets.ToolItem.getDisplay(ToolItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code)) at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java(Compiled Code)) at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java(Compiled Code)) at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:504) at org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:48) at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:458) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:344) at org.eclipse.ui.views.contentoutline.ContentOutline.partBroughtToTop(ContentOutline.java:177) at org.eclipse.ui.internal.PartListenerList$2.run(PartListenerList.java:51) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.ui.internal.PartListenerList.firePartBroughtToTop(PartListenerList.java:49) at org.eclipse.ui.internal.WorkbenchPage.firePartBroughtToTop(WorkbenchPage.java:553) at org.eclipse.ui.internal.WorkbenchPage.bringToTop(WorkbenchPage.java:154) at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1071) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:221) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:207) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:195) at org.eclipse.jdt.internal.ui.actions.OpenJavaElementAction.open(OpenJavaElementAction.java:52) at org.eclipse.jdt.internal.ui.javaeditor.OpenOnSelectionAction.run(OpenOnSelectionAction.java:103) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:351) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:342) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.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:676) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:810) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:280) 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:433) at org.eclipse.core.launcher.Main.main(Main.java:306) NOTES: EG (9/20/2001 9:38:06 AM) CK pls investigate into a reproducable case on Linux or Windows

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/PageBookView.java