Package org.eclipse.core.databinding.observable.set

Examples of org.eclipse.core.databinding.observable.set.IObservableSet


    /**
     * @param parent
     * @return aueosnht
     */
    public IObservableSet getChildrenSet(Object parent) {
        IObservableSet result = getNode(parent).getChildrenSet();
       
        return result;
    }
View Full Code Here


  public IObservableSet observe(Realm realm, Object source) {
    IObservableSet[] sets = new IObservableSet[properties.length];
    for (int i = 0; i < sets.length; i++)
      sets[i] = properties[i].observe(realm, source);
    IObservableSet unionSet = new UnionSet(sets, elementType);

    for (int i = 0; i < sets.length; i++)
      PropertyObservableUtil.cascadeDispose(unionSet, sets[i]);

    return unionSet;
View Full Code Here

   * @return a Set with the current contents of the source's set property
   * @since 1.3
   * @noreference This method is not intended to be referenced by clients.
   */
  protected Set doGetSet(Object source) {
    IObservableSet observable = observe(source);
    try {
      return new IdentitySet(observable);
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

   *            a diff describing the change
   * @since 1.3
   * @noreference This method is not intended to be referenced by clients.
   */
  protected void doUpdateSet(Object source, SetDiff diff) {
    IObservableSet observable = observe(source);
    try {
      diff.applyTo(observable);
    } finally {
      observable.dispose();
    }
  }
View Full Code Here

      return new SetChangeListener(parentElement);
    }

    protected void addCollectionChangeListener(
        IObservableCollection collection, IObservablesListener listener) {
      IObservableSet set = (IObservableSet) collection;
      ISetChangeListener setListener = (ISetChangeListener) listener;
      set.addSetChangeListener(setListener);
    }
View Full Code Here

      set.addSetChangeListener(setListener);
    }

    protected void removeCollectionChangeListener(
        IObservableCollection collection, IObservablesListener listener) {
      IObservableSet set = (IObservableSet) collection;
      ISetChangeListener setListener = (ISetChangeListener) listener;
      set.removeSetChangeListener(setListener);
    }
View Full Code Here

      masterValue = masterProperty.observe(realm, source);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableSet detailSet = detailProperty.observeDetail(masterValue);
    PropertyObservableUtil.cascadeDispose(detailSet, masterValue);
    return detailSet;
  }
View Full Code Here

      masterValue = masterProperty.observeDetail(master);
    } finally {
      ObservableTracker.setIgnore(false);
    }

    IObservableSet detailSet = detailProperty.observeDetail(masterValue);
    PropertyObservableUtil.cascadeDispose(detailSet, masterValue);
    return detailSet;
  }
View Full Code Here

      detailProperty.setValue(key, newValue);
    }
  }

  public IObservableMap observe(Realm realm, Object source) {
    IObservableSet masterSet;

    ObservableTracker.setIgnore(true);
    try {
      masterSet = masterProperty.observe(realm, source);
    } finally {
View Full Code Here

    PropertyObservableUtil.cascadeDispose(detailMap, masterSet);
    return detailMap;
  }

  public IObservableMap observeDetail(IObservableValue master) {
    IObservableSet masterSet;

    ObservableTracker.setIgnore(true);
    try {
      masterSet = masterProperty.observeDetail(master);
    } finally {
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.observable.set.IObservableSet

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.