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

Examples of org.eclipse.core.databinding.property.value.SimpleValueProperty


  protected static IObservable observePropertyValue(Object object,
      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.databinding.property.value.SimpleValueProperty

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.