Examples of AdaptableList


Examples of org.eclipse.ui.model.AdaptableList

     *            FileSystemElement
     */
    public void addChild(FileSystemElement child) {
        if (child.isDirectory()) {
            if (folders == null) {
        folders = new AdaptableList(1);
      }
            folders.add(child);
        } else {
            if (files == null) {
        files = new AdaptableList(1);
      }
            files.add(child);
        }
    }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

     * @return AdaptableList The list of files parented by the receiver.
     */
    public AdaptableList getFiles() {
        if (files == null) {
            // lazily initialize (can't share result since it's modifiable)
            files = new AdaptableList(0);
        }
        return files;
    }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

     * @return AdapatableList The list of folders parented by the receiver.
     */
    public AdaptableList getFolders() {
        if (folders == null) {
            // lazily initialize (can't share result since it's modifiable)
            folders = new AdaptableList(0);
        }
        return folders;
    }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

                return getChildren(list.get(0));
            }

            return list.toArray();
        } else if (parentElement instanceof AdaptableList) {
            AdaptableList aList = (AdaptableList) parentElement;
            Object[] children = aList.getChildren();
            @SuppressWarnings("rawtypes")
      ArrayList list = new ArrayList(children.length);
            for (int i = 0; i < children.length; i++) {
                handleChild(children[i], list);
            }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

        // ensure the category is expanded.  If there is a remembered expansion it will be set later.
        if (expandTop) {
      treeViewer.setAutoExpandLevel(2);
    }

        AdaptableList input = new AdaptableList(inputArray);

        treeViewer.setInput(input);

    filterTree.setBackground(parent.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_BACKGROUND));
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

        // ensure the category is expanded.  If there is a remembered expansion it will be set later.
        if (expandTop) {
      treeViewer.setAutoExpandLevel(2);
    }

        AdaptableList input = new AdaptableList(inputArray);

        treeViewer.setInput(input);

    filterTree.setBackground(parent.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_BACKGROUND));
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

          // ensure the category is expanded.  If there is a remembered expansion it will be set later.
          if (expandTop) {
        viewer.setAutoExpandLevel(2);
      }

          AdaptableList input = new AdaptableList(inputArray);
         
          // filter wizard list according to capabilities that are enabled
          viewer.addFilter(new WizardActivityFilter());
         
          viewer.setInput(input);
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

        .getExportWizardRegistry().getRootCategory();
    WizardCollectionElement otherCategory = (WizardCollectionElement) root
        .findCategory(new Path(
            WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY));
    if (otherCategory == null) {
      return new AdaptableList();
    }
    return otherCategory.getWizardAdaptableList();   
  }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

        .getImportWizardRegistry().getRootCategory();
    WizardCollectionElement otherCategory = (WizardCollectionElement) root
        .findCategory(new Path(
            WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY));
    if (otherCategory == null) {
      return new AdaptableList();
    }
    return otherCategory.getWizardAdaptableList();
    }
View Full Code Here

Examples of org.eclipse.ui.model.AdaptableList

                return getChildren(list.get(0));
            }

            return list.toArray();
        } else if (parentElement instanceof AdaptableList) {
            AdaptableList aList = (AdaptableList) parentElement;
            Object[] children = aList.getChildren();
            ArrayList list = new ArrayList(children.length);
            for (int i = 0; i < children.length; i++) {
                handleChild(children[i], list);
            }
            // if there is only one category, return it's children directly (flatten list)
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.