Examples of ICheckable


Examples of org.eclipse.jface.viewers.ICheckable

  protected final Set createElementSet(StructuredViewer viewer) {
    return ViewerElementSet.withComparer(viewer.getComparer());
  }

  protected void doUpdateSet(Object source, SetDiff diff) {
    ICheckable checkable = (ICheckable) source;
    for (Iterator it = diff.getAdditions().iterator(); it.hasNext();)
      checkable.setChecked(it.next(), true);
    for (Iterator it = diff.getRemovals().iterator(); it.hasNext();)
      checkable.setChecked(it.next(), false);
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.ICheckable

        "Cannot batch replace the checked elements on an ICheckable.  " + //$NON-NLS-1$
            "Use updateSet(SetDiff) instead"); //$NON-NLS-1$
  }

  protected void doUpdateSet(Object source, SetDiff diff) {
    ICheckable checkable = (ICheckable) source;
    for (Iterator it = diff.getAdditions().iterator(); it.hasNext();)
      checkable.setChecked(it.next(), true);
    for (Iterator it = diff.getRemovals().iterator(); it.hasNext();)
      checkable.setChecked(it.next(), false);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.