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

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


    setScheme(localChangeManager.getActiveScheme());

    // Update the when combo.
    whenCombo.setInput(getContexts());

    commandModel = new WritableSet();
    bindingModel = new WritableSet();
    model = new UnionSet(
        new IObservableSet[] { bindingModel, commandModel });

    bindingModel.addAll(localChangeManager
        .getActiveBindingsDisregardingContextFlat());
View Full Code Here


  /**
   *
   */
  public ObservableListContentProvider() {
    observableList = new WritableList(SWTObservables.getRealm(Display.getDefault()));
    knownElements = new WritableSet(SWTObservables.getRealm(Display.getDefault()));
  }
View Full Code Here

   *         {@link IElementComparer} for comparisons.
   */
  public static IObservableSet withComparer(Realm realm, Object elementType,
      IElementComparer comparer) {
    if (comparer == null)
      return new WritableSet(realm, Collections.EMPTY_SET, elementType);
    return new ObservableViewerElementSet(realm, elementType, comparer);
  }
View Full Code Here

        }
        if (source instanceof List<?>) {
          view = new WritableList(XWT.getRealm(), (List<?>)source, elementType);
        }
        else if (source instanceof Set<?>) {
          view = new WritableSet(XWT.getRealm(), (List<?>)source, elementType);
        }
      }
    }
    return view;
  }
View Full Code Here

public class SetToIObservableCollection implements IConverter {
  public static SetToIObservableCollection instance = new SetToIObservableCollection();

  public Object convert(Object fromObject) {
    Set<?> set = (Set<?>) fromObject;
    return new WritableSet(XWT.getRealm(), (Set<?>)set, Object.class);
  }
View Full Code Here

TOP

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

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.