The Robot Application Programming Interface Delegate Project
RAPID Logo

ExamplesUIUtils Class Reference

List of all members.

Static Public Member Functions

static void runInDisplayThread (final Widget widget, final Runnable runnable)
 If this is called from within the UI thread, it will be run immediately otherwise it will be run with Display#asyncExec(Runnable) on the Display of the passed Widget.
static boolean runInDisplayThread (final Widget widget, final Runnable runnable, boolean blockUntilFinished)
 If this is called from within the UI thread, it will be run immediately otherwise it will be run with Display#asyncExec(Runnable) on the Display of the passed Widget.

Member Function Documentation

static void runInDisplayThread ( final Widget  widget,
final Runnable  runnable 
) [static]
Parameters:
widgetthe widget associated with this task. It will be checked for disposal prior to the runnable being executed.
runnablethe task to carry out.
static boolean runInDisplayThread ( final Widget  widget,
final Runnable  runnable,
boolean  blockUntilFinished 
) [static]
Parameters:
widgetthe widget associated with this task. It will be checked for disposal prior to the runnable being executed.
runnablethe task to carry out.
blockUntilFinishedwhether the invoking thread should wait until the runnable completes in the UI thread
Returns:
whether the runnable was run

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines