Examples of BPListElementAttribute


Examples of org.eclipse.dltk.internal.ui.wizards.buildpath.BPListElementAttribute

    List selElements = fFoldersList.getSelectedElements();
    for (int i = selElements.size() - 1; i >= 0; i--) {
      Object elem = selElements.get(i);
      if (elem instanceof BPListElementAttribute) {
        BPListElementAttribute attrib = (BPListElementAttribute) elem;
        String key = attrib.getKey();
        Object value = null;
        if (key.equals(BPListElement.EXCLUSION)
            || key.equals(BPListElement.INCLUSION)) {
          value = new Path[0];
        }
        attrib.getParent().setAttribute(key, value);
        selElements.remove(i);
      }
    }
    if (selElements.isEmpty()) {
      fFoldersList.refresh();
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.wizards.buildpath.BPListElementAttribute

   * @param element
   * @return
   */
  private boolean shouldDisplayElement(Object element) {
    if (element instanceof BPListElementAttribute) {
      BPListElementAttribute attribute = (BPListElementAttribute) element;
      String key = attribute.getKey();
      // do not display include and exclude nodes
      if (key.equals(BPListElement.INCLUSION)
          || key.equals(BPListElement.EXCLUSION)) {
        return 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.