You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sporadic "Widget is disposed" exception in ToolBarManagerRenderer
In case the toolbar item is contributed via an extension point, it
might happen that the corresponding widget is disposed, immediately
after creation. To avoid any errors further down the invocation chain,
the call to createWidget() must then return null, rather than the
invalid widget.
One use-case where this might happen is if the handler bound to this
toolbar item tries to access the workbench window. If the window hasn't
been created yet, this can force a recreation of the toolbar, disposing
the current widget in the process.
See the following commits for similar problems:
- 228b669
- e4d8434
Copy file name to clipboardExpand all lines: bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
Copy file name to clipboardExpand all lines: tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRendererTest.java
0 commit comments