Causes the
run()
method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity. The thread which calls this method is suspended until the runnable completes. Specifying
null
as the runnable simply wakes the user-interface thread.
Note that at the time the runnable is invoked, widgets that have the receiver as their display may have been disposed. Therefore, it is necessary to check for this case inside the runnable before accessing the widget.
@param runnable code to run on the user-interface thread or
null
@exception SWTException
- ERROR_FAILED_EXEC - if an exception occurred when executing the runnable
- ERROR_DEVICE_DISPOSED - if the receiver has been disposed
@see #asyncExec