org.eclipse.emf.ecp.test.common
Class DefaultRealm

java.lang.Object
  extended by org.eclipse.core.databinding.observable.Realm
      extended by 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

Constructor Summary
DefaultRealm()
          Create a new instance of DefaultRealm.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRealm

public DefaultRealm()
Create a new instance of DefaultRealm.

Method Detail

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.