public class DisplayRealm extends Realm
Modifier and Type | Method and Description |
---|---|
void |
asyncExec(Runnable runnable)
Causes the
run() method of the runnable to be invoked from
within this realm at the next reasonable opportunity. |
boolean |
equals(Object obj) |
static Realm |
getRealm(Display display)
Returns the realm representing the UI thread for the given display.
|
int |
hashCode() |
boolean |
isCurrent() |
void |
timerExec(int milliseconds,
Runnable runnable)
Causes the
run() method of the runnable to be invoked from
within this realm after the specified number of milliseconds have
elapsed. |
exec, getDefault, runWithDefault, safeRun, setDefault, syncExec
public static Realm getRealm(Display display)
display
- public boolean isCurrent()
public void asyncExec(Runnable runnable)
Realm
run()
method of the runnable to be invoked from
within this realm at the next reasonable opportunity. The caller of this
method continues to run in parallel, and is not notified when the
runnable has completed.
If the given runnable is an instance of ISafeRunnable
, its
exception handler method will be called if any exceptions occur while
running it. Otherwise, the exception will be logged.
Subclasses should use Realm.safeRun(Runnable)
to run the runnable.
public void timerExec(int milliseconds, Runnable runnable)
Realm
run()
method of the runnable to be invoked from
within this realm after the specified number of milliseconds have
elapsed. If milliseconds is less than zero, the runnable is not executed.
The caller of this method continues to run in parallel, and is not
notified when the runnable has completed.
If the given runnable is an instance of ISafeRunnable
, its
exception handler method will be called if any exceptions occur while
running it. Otherwise, the exception will be logged.
Subclasses should use Realm.safeRun(Runnable)
to run the runnable.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.