Disposes of the operating system resources associated with the receiver and all its descendants. After this method has been invoked, the receiver and all descendants will answer
true
when sent the message
isDisposed()
. Any internal connections between the widgets in the tree will have been removed to facilitate garbage collection. This method does nothing if the widget is already disposed.
NOTE: This method is not called recursively on the descendants of the receiver. This means that, widget implementers can not detect when a widget is being disposed of by re-implementing this method, but should instead listen for the Dispose
event.
@exception SWTException
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
@see #addDisposeListener
@see #removeDisposeListener
@see #checkWidget