Class DefaultRealm
- java.lang.Object
-
- org.eclipse.core.databinding.observable.Realm
-
- org.eclipse.emfforms.internal.core.services.databinding.DefaultRealm
-
public class DefaultRealm extends org.eclipse.core.databinding.observable.Realm
Simple realm implementation that will set itself as default when constructed. Invokedispose()
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
-
-
Constructor Summary
Constructors Constructor Description DefaultRealm()
Create a new instance ofDefaultRealm
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
asyncExec(java.lang.Runnable runnable)
void
dispose()
Removes the realm from being the current and sets the previous realm to the default.boolean
isCurrent()
protected void
syncExec(java.lang.Runnable runnable)
-
-
-
Constructor Detail
-
DefaultRealm
public DefaultRealm()
Create a new instance ofDefaultRealm
.
-
-
Method Detail
-
isCurrent
public boolean isCurrent()
- Specified by:
isCurrent
in classorg.eclipse.core.databinding.observable.Realm
- Returns:
- always returns true
-
syncExec
protected void syncExec(java.lang.Runnable runnable)
- Overrides:
syncExec
in classorg.eclipse.core.databinding.observable.Realm
-
asyncExec
public void asyncExec(java.lang.Runnable runnable)
- Overrides:
asyncExec
in classorg.eclipse.core.databinding.observable.Realm
- Throws:
java.lang.UnsupportedOperationException
-
dispose
public void dispose()
Removes the realm from being the current and sets the previous realm to the default.
-
-