Class DisplayRealm
- java.lang.Object
-
- org.eclipse.core.databinding.observable.Realm
-
- org.eclipse.jface.databinding.swt.DisplayRealm
-
public class DisplayRealm extends Realm
- Since:
- 1.7
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
asyncExec(Runnable runnable)
Causes therun()
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 therun()
method of the runnable to be invoked from within this realm after the specified number of milliseconds have elapsed.-
Methods inherited from class org.eclipse.core.databinding.observable.Realm
exec, getDefault, runWithDefault, safeRun, setDefault, syncExec
-
-
-
-
Method Detail
-
getRealm
public static Realm getRealm(Display display)
Returns the realm representing the UI thread for the given display.- Parameters:
display
- the display to get realm for- Returns:
- the realm representing the UI thread for the given display
-
isCurrent
public boolean isCurrent()
-
asyncExec
public void asyncExec(Runnable runnable)
Description copied from class:Realm
Causes therun()
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.
-
timerExec
public void timerExec(int milliseconds, Runnable runnable)
Description copied from class:Realm
Causes therun()
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.
-
-