Package org.eclipse.core.databinding.observable

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);
    }
  }
View Full Code Here


    }

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

        observable.removeChangeListener(this);
      }
    }
View Full Code Here

    }

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

        observable.removeChangeListener(this);
      }
    }
View Full Code Here

  }

  private void stopListening() {
    // Stop listening for dependency changes
    for (int i = 0; i < dependencies.length; i++) {
      IObservable observable = dependencies[i];
       
      observable.removeChangeListener(privateInterface);
    }
  }
View Full Code Here

      Viewer viewer = ((IViewerObservable) target).getViewer();
      return viewer.getControl();
    }

    if (target instanceof IDecoratingObservable) {
      IObservable decorated = ((IDecoratingObservable) target)
          .getDecorated();
      Control control = findControl(decorated);
      if (control != null)
        return control;
    }
View Full Code Here

    this.propertyDescriptor = null;
    super.dispose();
  }

  public Object getObserved() {
    IObservable decorated = getDecorated();
    if (decorated instanceof IObserving)
      return ((IObserving) decorated).getObserved();
    return null;
  }
View Full Code Here

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

  }

  private void stopListening() {
    if (dependencies != null) {
      for (int i = 0; i < dependencies.length; i++) {
        IObservable observable = dependencies[i];

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

   */
  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

      // Update the staleness state by checking whether any of the current
      // dependencies is stale.
      stale = false;
      for (Iterator iter = targets.iterator(); iter.hasNext();) {
        IObservable dependency = (IObservable) iter.next();
        if (dependency.isStale()) {
          stale = true;
          break;
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.observable.IObservable

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.