Examples of IWizardCategory


Examples of org.eclipse.ui.wizards.IWizardCategory

     */
    private IWizardCategory getChildWithID(
            IWizardCategory parent, String id) {
        IWizardCategory [] children = parent.getCategories();
        for (int i = 0; i < children.length; ++i) {
          IWizardCategory currentChild = children[i];
            if (currentChild.getId().equals(id)) {
        return currentChild;
      }
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

    workbench.getHelpSystem().setHelp(getControl(),
                IWorkbenchHelpContextIds.EXPORT_WIZARD_SELECTION_WIZARD_PAGE);
  }

  protected Composite createTreeViewer(Composite parent) {
    IWizardCategory root = WorkbenchPlugin.getDefault()
      .getExportWizardRegistry().getRootCategory();
    exportTree = new CategorizedWizardSelectionTree(
        root, WorkbenchMessages.ExportWizard_selectDestination);
    Composite exportComp = exportTree.createControl(parent);
    exportTree.getViewer().addSelectionChangedListener(new ISelectionChangedListener(){
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

        storeSelectedCategoryAndWizard(STORE_SELECTED_EXPORT_WIZARD_ID, exportTree.getViewer());  
        super.saveWidgetValues();
  }
 
  protected void restoreWidgetValues(){
        IWizardCategory exportRoot = WorkbenchPlugin.getDefault().getExportWizardRegistry().getRootCategory();
        expandPreviouslyExpandedCategories(STORE_EXPANDED_EXPORT_CATEGORIES, exportRoot, exportTree.getViewer());
        selectPreviouslySelected(STORE_SELECTED_EXPORT_WIZARD_ID, exportRoot, exportTree.getViewer());      
        super.restoreWidgetValues();
  }
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

        getControl(),
        IWorkbenchHelpContextIds.IMPORT_WIZARD_SELECTION_WIZARD_PAGE);    
  }

  protected Composite createTreeViewer(Composite parent) {
    IWizardCategory root = WorkbenchPlugin.getDefault()
      .getImportWizardRegistry().getRootCategory();
    importTree = new CategorizedWizardSelectionTree(
        root, WorkbenchMessages.ImportWizard_selectSource);
    Composite importComp = importTree.createControl(parent);
    importTree.getViewer().addSelectionChangedListener(new ISelectionChangedListener(){
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

        storeSelectedCategoryAndWizard(STORE_SELECTED_IMPORT_WIZARD_ID, importTree.getViewer());  
        super.saveWidgetValues();
  }
 
  protected void restoreWidgetValues(){
      IWizardCategory importRoot = WorkbenchPlugin.getDefault().getImportWizardRegistry().getRootCategory();
        expandPreviouslyExpandedCategories(STORE_EXPANDED_IMPORT_CATEGORIES, importRoot,importTree.getViewer());
        selectPreviouslySelected(STORE_SELECTED_IMPORT_WIZARD_ID, importRoot, importTree.getViewer());
        super.restoreWidgetValues();
  }
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

    return (WizardElement) idToElement.get(id);
  }

  public QuickAccessElement[] getElements() {
    if (cachedElements == null) {
      IWizardCategory rootCategory = WorkbenchPlugin.getDefault()
          .getNewWizardRegistry().getRootCategory();
      List result = new ArrayList();
      collectWizards(rootCategory, result);
      IWizardDescriptor[] wizards = (IWizardDescriptor[]) result
          .toArray(new IWizardDescriptor[result.size()]);
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

      inputArray.add(primaryWizards[i]);
    }

    if (!projectsOnly) {

      IWizardCategory phpCategory = wizardCategories
          .findCategory(new Path("org.eclipse.php.project.ui")); //$NON-NLS-1$
      // IWizardCategory[] children = wizardCategories.getCategories();
      // for (int i = 0; i < children.length; i++) {
      // if ("org.eclipse.php.project.ui".equals(children[i].getId())) {
      // phpCategory = children[i];
      // }
      // }
      if (phpCategory != null) {
        IWizardDescriptor[] wizards = phpCategory.getWizards();
        for (int i = 0; i < wizards.length; i++) {
          inputArray.add(wizards[i]);
        }
        inputArray = sortWizard(inputArray);
        IWizardCategory[] categories = phpCategory.getCategories();
        for (int i = 0; i < categories.length; i++) {
          inputArray.add(categories[i]);
        }
        IWizardDescriptor folder = wizardCategories
            .findWizard("org.eclipse.ui.wizards.new.folder"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

    List categoriesToExpand = new ArrayList(expandedCategoryPaths.length);

    if (wizardCategories != null) {
      for (int i = 0; i < expandedCategoryPaths.length; i++) {
        IWizardCategory category = wizardCategories
            .findCategory(new Path(expandedCategoryPaths[i]));
        if (category != null) {
          categoriesToExpand.add(category);
        }
      }
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

  /**
   * Create the wizard pages
   */
  public void addPages() {
    IWizardCategory root = WorkbenchPlugin.getDefault()
        .getNewWizardRegistry().getRootCategory();
    IWizardDescriptor[] primary = new IWizardDescriptor[0];
    if (projectsOnly) {
      List<IWizardDescriptor> wizards = new ArrayList<IWizardDescriptor>();
      fillWizards(root, wizards);
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardCategory

   * Returns the child collection element for the given id
   */
  private IWizardCategory getChildWithID(IWizardCategory parent, String id) {
    IWizardCategory[] children = parent.getCategories();
    for (int i = 0; i < children.length; ++i) {
      IWizardCategory currentChild = children[i];
      if (currentChild.getId().equals(id)) {
        return currentChild;
      }
    }
    return null;
  }
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.