Examples of IObservable


Examples of org.eclipse.core.databinding.observable.IObservable

   *
   */
  private void stopListening() {
    // Stop listening for dependency changes.
    for (int i = 0; i < dependencies.length; i++) {
      IObservable observable = dependencies[i];

      observable.removeChangeListener(privateInterface);
      observable.removeStaleListener(privateInterface);
    }
  }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

   */
  public StalenessTracker(IObservable[] observables,
      IStalenessConsumer stalenessConsumer) {
    this.stalenessConsumer = stalenessConsumer;
    for (int i = 0; i < observables.length; i++) {
      IObservable observable = observables[i];
      doAddObservable(observable, false);
    }
    stalenessConsumer.setStale(staleCount > 0);
  }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

        }
      }
    }
    observables.removeAll(excludedObservables);
    for (Iterator it = observables.iterator(); it.hasNext();) {
      IObservable observable = (IObservable) it.next();
      observable.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    if (source instanceof IDataProvider) {
      return false;
    }
    String parentPath = path.substring(0, index);
    IObservable observable = ScopeManager.observeValue(getControl(),
        source, parentPath, getUpdateSourceTrigger());
    if (observable != null) {
      IObservableValue observableValue = (IObservableValue) observable;
      Object type = observableValue.getValueType();
      if (type != null) {
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    value.addChangeListener(changeListenerSupport);
  }

  IObservableValue getObservableValue(Widget control, Object data,
      String property) {
    IObservable observable = getObservable(control, data, property);
    if (observable instanceof IObservableValue) {
      return (IObservableValue) observable;
    }

    return null;
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    return null;
  }

  IObservableList getObservableList(Widget control, Object data,
      String property) {
    IObservable observable = getObservable(control, data, property);
    if (observable instanceof IObservableList) {
      return (IObservableList) observable;
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    }
    return null;
  }

  IObservableSet getObservableSet(Widget control, Object data, String property) {
    IObservable observable = getObservable(control, data, property);
    if (observable instanceof IObservableSet) {
      return (IObservableSet) observable;
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    for (HashMap<Object, HashMap<String, IObservable>> widgetData : bindingData
        .values()) {
      if (widgetData != null) {
        HashMap<String, IObservable> objectData = widgetData.get(data);
        if (objectData != null) {
          IObservable observable = objectData.get(property);
          if (observable != null) {
            return observable;
          }
        }
      }
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

    return null;
  }

  IObservable getObservable(Widget control, Object data, String property) {
    // find locally
    IObservable observable = localGetObservable(control, data, property);
    if (observable != null) {
      return observable;
    }

    // find in other ScopeKeeper and then keep it in this ScopeKeeper.
View Full Code Here

Examples of org.eclipse.core.databinding.observable.IObservable

  static IObservable deepFindObservable(Widget control, Object data,
      String property) {
    ScopeKeeper scopeKeeper = UserData.getLocalScopeKeeper(control);
    if (scopeKeeper != null) {
      IObservable observable = scopeKeeper.localGetObservable(control,
          data, property);
      if (observable != null) {
        return observable;
      }
    }
    if (control instanceof Composite) {
      Composite composite = (Composite) control;
      for (Control child : composite.getChildren()) {
        IObservable observable = deepFindObservable(child, data,
            property);
        if (observable != null) {
          return observable;
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.