|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.finders.UIThreadRunnable
public abstract class UIThreadRunnable
Performs operations in the UI thread. If the run() method of this class is called from an non-UI thread, the
instance ensures that it runs in the UI thread by invoking Display.syncExec(Runnable), else it executes in
the UI thread. All operations are blocking operations.
| Field Summary | |
|---|---|
protected Display |
display
the display on which runnables must be executed. |
| Method Summary | ||
|---|---|---|
static void |
asyncExec(Display display,
VoidResult toExecute)
Executes the toExecute on the UI thread asynchronously, and does not block the calling thread. |
|
static void |
asyncExec(VoidResult toExecute)
Executes the toExecute on the UI thread asynchronously, and does not block the calling thread. |
|
protected abstract void |
doRun()
Performs the run in the UI Thread. |
|
void |
run()
This method is intelligent to execute in the UI thread. |
|
static
|
syncExec(ArrayResult<T> toExecute)
Executes the toExecute on the display thread, and blocks the calling thread. |
|
static
|
syncExec(Display display,
ArrayResult<T> toExecute)
Executes the toExecute on the display thread, and blocks the calling thread. |
|
static
|
syncExec(Display display,
Result<T> toExecute)
Executes the toExecute on the display thread, and blocks the calling thread. |
|
static void |
syncExec(Display display,
VoidResult toExecute)
Executes the toExecute on the display thread, and blocks the calling thread. |
|
static
|
syncExec(Result<T> toExecute)
Executes the toExecute on the UI thread, and blocks the calling thread. |
|
static void |
syncExec(VoidResult toExecute)
Executes the toExecute on the UI thread, and blocks the calling thread. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Display display
| Method Detail |
|---|
public void run()
run in interface Runnableprotected abstract void doRun()
This MUST be invoked in the UI thread.
public static <T> T syncExec(Result<T> toExecute)
toExecute on the UI thread, and blocks the calling thread.
T - the type of the result.toExecute - the runnable to execute.
public static <T> T syncExec(Display display,
Result<T> toExecute)
toExecute on the display thread, and blocks the calling thread.
T - the type of the result.display - the display on which toExecute must be executed.toExecute - the runnable to execute.
public static <T> T[] syncExec(ArrayResult<T> toExecute)
toExecute on the display thread, and blocks the calling thread.
T - the type of the result.toExecute - the runnable to execute.
public static <T> T[] syncExec(Display display,
ArrayResult<T> toExecute)
toExecute on the display thread, and blocks the calling thread.
T - the type of the result.display - the display on which toExecute must be executed.toExecute - the runnable to execute.
public static void syncExec(VoidResult toExecute)
toExecute on the UI thread, and blocks the calling thread.
toExecute - the runnable to execute.
public static void syncExec(Display display,
VoidResult toExecute)
toExecute on the display thread, and blocks the calling thread.
display - the display on which toExecute must be executed.toExecute - the runnable to execute.public static void asyncExec(VoidResult toExecute)
toExecute on the UI thread asynchronously, and does not block the calling thread.
toExecute - the runnable to execute.
public static void asyncExec(Display display,
VoidResult toExecute)
toExecute on the UI thread asynchronously, and does not block the calling thread.
display - the display on which toExecute must be executed.toExecute - the runnable to execute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||