Package org.eclipse.jface.databinding.viewers

Examples of org.eclipse.jface.databinding.viewers.ObservableSetTreeContentProvider$Impl


  public IObservableSet getKnownElements() {
    if (delegate == null) {
      return null;
    }
    if (delegate instanceof ObservableSetTreeContentProvider) {
      ObservableSetTreeContentProvider contentProvider = (ObservableSetTreeContentProvider) delegate;
      return contentProvider.getKnownElements();
    }
    if (delegate instanceof ObservableListTreeContentProvider) {
      ObservableListTreeContentProvider contentProvider = (ObservableListTreeContentProvider) delegate;
      return contentProvider.getKnownElements();
    }
    throw new IllegalStateException();
  }
View Full Code Here


   
    if (observable instanceof IObservableList) {
      delegate = new ObservableListTreeContentProvider(observableFactory, null);     
    }
    else if (observable instanceof IObservableSet) {
      delegate = new ObservableSetTreeContentProvider(observableFactory, null);           
    }
    else {
      throw new UnsupportedOperationException(observable.getClass().getName());
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.databinding.viewers.ObservableSetTreeContentProvider$Impl

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.