org.eclipse.emf.ecp.test.common
Class DefaultRealm
java.lang.Object
org.eclipse.core.databinding.observable.Realm
org.eclipse.emf.ecp.test.common.DefaultRealm
public class DefaultRealm
- extends org.eclipse.core.databinding.observable.Realm
Simple realm implementation that will set itself as default when constructed. Invoke dispose()
to remove the
realm from being the default. Does not support asyncExec(...).
- Author:
- Lucas Koehler
- See Also:
- http://wiki.eclipse.org/JFace_Data_Binding/Realm
Method Summary |
void |
asyncExec(Runnable runnable)
|
void |
dispose()
Removes the realm from being the current and sets the previous realm to the default. |
boolean |
isCurrent()
|
Methods inherited from class org.eclipse.core.databinding.observable.Realm |
exec, getDefault, runWithDefault, timerExec |
DefaultRealm
public DefaultRealm()
- Create a new instance of
DefaultRealm
.
isCurrent
public boolean isCurrent()
- Specified by:
isCurrent
in class org.eclipse.core.databinding.observable.Realm
- Returns:
- always returns true
asyncExec
public void asyncExec(Runnable runnable)
- Overrides:
asyncExec
in class org.eclipse.core.databinding.observable.Realm
- Throws:
UnsupportedOperationException
dispose
public void dispose()
- Removes the realm from being the current and sets the previous realm to the default.
Copyright © 2015. All Rights Reserved.