Package org.eclipse.core.internal.databinding.property.value

Examples of org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue


   */
  public abstract INativePropertyListener adaptListener(
      ISimplePropertyListener listener);

  public IObservableValue observe(Realm realm, Object source) {
    return new SimplePropertyObservableValue(realm, source, this);
  }
View Full Code Here


      String propertyName, UpdateSourceTrigger updateSourceTrigger) {
    if (object instanceof Viewer) {
      if ("input".equals(propertyName)) {
        Viewer viewer = (Viewer) object;
        SimpleValueProperty property = (SimpleValueProperty) ViewerProperties.input();
        IObservableValue observableValue = new SimplePropertyObservableValue(XWT.getRealm(), viewer, property);
        return new TypedViewerObservableValueDecorator(observableValue, viewer);
      }
      else if ("singleSelection".equals(propertyName)) {
        Viewer viewer = (Viewer) object;
        SimpleValueProperty property = (SimpleValueProperty) ViewerProperties.singleSelection();
        IObservableValue observableValue = new SimplePropertyObservableValue(XWT.getRealm(), viewer, property);
        return new TypedViewerObservableValueDecorator(observableValue, viewer);
      }
      return observePropertyValue((Viewer) object, propertyName, updateSourceTrigger);
    } else if (object instanceof MenuItem) {
      //
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.