Project: Eclipse_Platform_UI
Bug 13804 WID exception opening on selection
Reported: 2002-04-15 12:19:13 | Status: resolved fixed

Build 20020412 Linux-motif While debugging, I clicked on a stack frame which opened ASTInstructionCompiler.java. In the method "public boolean visit(ArrayType node)" I put my cursor in the call to "getElementType()" on the line which reads: "ITypeBinding typeBinding= node.getElementType().resolveBinding();" When I hit F3, I get an internal error dialog with the following detail. org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:1887) 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.jface.action.ToolBarManager.update(ToolBarManager.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.jface.action.ToolBarManager.update(ToolBarManager.java(Compiled Code)) at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java(Compiled Code)) at org.eclipse.ui.internal.WorkbenchWindow.updateActionBars(WorkbenchWindow.java:1217) at org.eclipse.ui.internal.WorkbenchWindow.updateActionSets(WorkbenchWindow.java:1234) at org.eclipse.ui.internal.WorkbenchPage$ActionSwitcher.updateActionSets(WorkbenchPage.java:273) at org.eclipse.ui.internal.WorkbenchPage$ActionSwitcher.updateTopEditor(WorkbenchPage.java:179) at org.eclipse.ui.internal.WorkbenchPage.bringToTop(WorkbenchPage.java:436) at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:334) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1543) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1523) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:130) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:102) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:89) at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:45) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:135) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:117) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:134) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:93) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:135) at org.eclipse.jdt.internal.ui.actions.RetargetActionDelegator.run(RetargetActionDelegator.java:53) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:202) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:162) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.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:819) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/action/ToolBarManager.java