How is it possible for a widget to be disposed if its dispose() was never called? I'm seeing an odd bug in an RCP app that shows up as: org.eclipse.swt.SWTException: Widget is disposed
So I set a breakpoint in to find out how/why it was being disposed. To my surprise, the breakpoint was never hit for the widget in question.
Here's the top of the stack trace:
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4282)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
at org.eclipse.swt.widgets.Widget.error(Widget.java:774)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:568)
at org.eclipse.swt.widgets.Widget.addDisposeListener(Widget.java:467)
at org.eclipse.jface.fieldassist.ControlDecoration.addControlListeners(ControlDecoration.java:602)
at org.eclipse.jface.fieldassist.ControlDecoration.<init>(ControlDecoration.java:476)
at org.eclipse.jface.fieldassist.ControlDecoration.<init>(ControlDecoration.java:428)
This is an RCP app built against a 3.7.2 target platform.
[Updated on: Wed, 09 May 2012 22:02] by Moderator