Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.AbstractListViewer


          Object[] toAdd = added.toArray();
          if (viewer instanceof TreeViewer) {
            TreeViewer tv = (TreeViewer) viewer;
            tv.add(model, toAdd);
          } else if (viewer instanceof AbstractListViewer) {
            AbstractListViewer lv = (AbstractListViewer) viewer;
            lv.add(toAdd);
          }
          Object[] toRemove = removed.toArray();
          if (viewer instanceof TreeViewer) {
            TreeViewer tv = (TreeViewer) viewer;
            tv.remove(toRemove);
          } else if (viewer instanceof AbstractListViewer) {
            AbstractListViewer lv = (AbstractListViewer) viewer;
            lv.remove(toRemove);
          }
        }
      }
      knownElements.doFireDiff(Collections.EMPTY_SET, removed);
    }
View Full Code Here


      Object[] toAdd = added.toArray();
      if (viewer instanceof TableViewer) {
        TableViewer tv = (TableViewer) viewer;
        tv.add(toAdd);
      } else if (viewer instanceof AbstractListViewer) {
        AbstractListViewer lv = (AbstractListViewer) viewer;
        lv.add(toAdd);
      }
      Object[] toRemove = removed.toArray();
      if (viewer instanceof TableViewer) {
        TableViewer tv = (TableViewer) viewer;
        tv.remove(toRemove);
      } else if (viewer instanceof AbstractListViewer) {
        AbstractListViewer lv = (AbstractListViewer) viewer;
        lv.remove(toRemove);
      }
    }
    knownElements.doFireDiff(Collections.EMPTY_SET, removed);
  }
View Full Code Here

public class JFaceInitializer implements IObjectInitializer {

  public void initialize(Object object) {
    if (object instanceof AbstractListViewer) {
      AbstractListViewer viewer = (AbstractListViewer) object;
      viewer.setLabelProvider(new DefaultViewerLabelProvider(viewer));
    }
    else if (object instanceof AbstractTableViewer) {
      AbstractTableViewer viewer = (AbstractTableViewer) object;
      viewer.setLabelProvider(new DefaultViewerLabelProvider(viewer));     
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.AbstractListViewer

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.