Java - Eclipse-RCP

Realm

org.eclipse.core.databinding.observable.Realm

A Realm defines a context from which the access on objects, which are based on IObservable, has to occur.
In practice a Realm corresponds to a Thread.
To enable the access over several Realms, subclasses from Binding can be used.



If you want to access objects without Binding, the access must occur as follows:

// Creation in a Realm:
WritableValue myWriteableValue;
myWriteableValue = ...
 
// call of another Realm:
myWriteableValue.getRealm().exec(new Runnable() {
   public void run() {
      myWriteableValue.setValue(newValue);            
   } 
});


see also: http://wiki.eclipse.org/JFace_Data_Binding/Realm


Eigene Werkzeuge
Werkzeuge

gratis Counter by GOWEB
seit 9.10.2007