public static class SwtExec.Blocking extends Object implements Executor
SwtExec.blocking()
) which adds a blocking get()
method.
Display.syncExec
.SwtExec.blocking
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable runnable) |
<T> T |
get(Supplier<T> supplier)
Performs a blocking get in the UI thread.
|
Executor |
guardOn(Control guard)
Returns an executor which will only execute if the given guard hasn't been disposed.
|
Executor |
guardOn(ControlWrapper guard)
Returns an executor which will only execute if the given guard hasn't been disposed.
|
public Executor guardOn(Control guard)
public Executor guardOn(ControlWrapper guard)
public <T> T get(Supplier<T> supplier)
supplier
- will be executed in the UI thread.