Package org.eclipse.ui.wizards

Examples of org.eclipse.ui.wizards.IWizardCategory


        List<IWizardCategory> categoriesToExpand = new ArrayList<IWizardCategory>(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


     * Create the wizard pages
     */
    public void addPages() {
      IWorkbench wkb = PlatformUI.getWorkbench();
      IWizardRegistry reg = wkb.getNewWizardRegistry();
        IWizardCategory root = reg.getRootCategory();
        IWizardDescriptor [] primary = reg.getPrimaryWizards();

        if (categoryId != null) {
            IWizardCategory categories = root;
            StringTokenizer familyTokenizer = new StringTokenizer(categoryId,
                    CATEGORY_SEPARATOR);
            while (familyTokenizer.hasMoreElements()) {
                categories = getChildWithID(categories, familyTokenizer
                        .nextToken());
View Full Code Here

     */
    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

        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

        if (window.containsSubmenu(WorkbenchWindow.NEW_WIZARD_SUBMENU)) {
            ShortcutMenu wizardMenu = new ShortcutMenu(rootMenu,
                    ShortcutMenu.ID_WIZARD, WorkbenchMessages.ActionSetDialogInput_wizardCategory);
           
            IWizardCategory wizardCollection = WorkbenchPlugin.getDefault().getNewWizardRegistry().getRootCategory();

            IWizardCategory [] wizardCategories = wizardCollection.getCategories();
            activeIds = Arrays.asList(perspective.getNewWizardShortcuts());
            for (int i = 0; i < wizardCategories.length; i++) {
                IWizardCategory element = wizardCategories[i];
                if (WorkbenchActivityHelper.filterItem(element)) {
          continue;
        }
                initializeShortCutMenu(wizardMenu, element, activeIds);
            }
View Full Code Here

    }

    final IWizardCategory[] childCategories = wizardCategory
        .getCategories();
    for (int i = 0; i < childCategories.length; i++) {
      final IWizardCategory childCategory = childCategories[i];
      addParameterValues(values, childCategory);
    }
  }
View Full Code Here

        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

     * Returns the export wizards that are available for invocation.
     */
    protected AdaptableList getAvailableExportWizards() {
         // TODO: exports are still flat - we need to get at the flat list. All
    // wizards will be in the "other" category.
    IWizardCategory root = WorkbenchPlugin.getDefault()
        .getExportWizardRegistry().getRootCategory();
    WizardCollectionElement otherCategory = (WizardCollectionElement) root
        .findCategory(new Path(
            WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY));
    if (otherCategory == null) {
      return new AdaptableList();
    }
View Full Code Here

     * Returns the import wizards that are available for invocation.
     */
    protected AdaptableList getAvailableImportWizards() {
         // TODO: imports are still flat - we need to get at the flat list. All
    // wizards will be in the "other" category.
    IWizardCategory root = WorkbenchPlugin.getDefault()
        .getImportWizardRegistry().getRootCategory();
    WizardCollectionElement otherCategory = (WizardCollectionElement) root
        .findCategory(new Path(
            WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY));
    if (otherCategory == null) {
      return new AdaptableList();
    }
View Full Code Here

    /**
     * Create the wizard pages
     */
    public void addPages() {
        IWizardCategory root = WorkbenchPlugin.getDefault().getNewWizardRegistry().getRootCategory();
        IWizardDescriptor [] primary = WorkbenchPlugin.getDefault().getNewWizardRegistry().getPrimaryWizards();

        if (categoryId != null) {
            IWizardCategory categories = root;
            StringTokenizer familyTokenizer = new StringTokenizer(categoryId,
                    CATEGORY_SEPARATOR);
            while (familyTokenizer.hasMoreElements()) {
                categories = getChildWithID(categories, familyTokenizer
                        .nextToken());
View Full Code Here

TOP

Related Classes of org.eclipse.ui.wizards.IWizardCategory

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.