Package org.eclipse.core.internal.databinding

Examples of org.eclipse.core.internal.databinding.IdentityWrapper


    }

    int i = 0;
    IObservable[] result = new IObservable[observableSet.size()];
    for (Iterator it = observableSet.iterator(); it.hasNext();) {
      IdentityWrapper wrapper = (IdentityWrapper) it.next();
      result[i++] = (IObservable) wrapper.unwrap();
    }

    return result;
  }
View Full Code Here


    IStaleListener lastStaleListener = (IStaleListener) currentStaleListener
        .get();

    boolean added = false;
    if (lastObservableSet != null) {
      added = lastObservableSet.add(new IdentityWrapper(observable));
    }

    // If anyone is listening for observable usage...
    if (added && lastChangeListener != null) {
      observable.addChangeListener(lastChangeListener);
View Full Code Here

   * @param child
   * @param callback
   */
  public void processStalenessChange(IObservable child, boolean callback) {
    boolean oldStale = staleCount > 0;
    IdentityWrapper wrappedChild = new IdentityWrapper(child);
    boolean oldChildStale = getOldChildStale(wrappedChild);
    boolean newChildStale = child.isStale();
    if (oldChildStale != newChildStale) {
      if (oldChildStale) {
        staleCount--;
View Full Code Here

  /**
   * @param observable
   */
  public void removeObservable(IObservable observable) {
    boolean oldStale = staleCount > 0;
    IdentityWrapper wrappedChild = new IdentityWrapper(observable);
    boolean oldChildStale = getOldChildStale(wrappedChild);
    if (oldChildStale) {
      staleCount--;
    }
    staleMap.remove(wrappedChild);
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.databinding.IdentityWrapper

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.