public String getPluginId() { return descriptor.getId(); }
@Override public String getId() { return wizardDescriptor.getId(); }
public String getLocalId() { return descriptor.getId(); }
/** * Remove all primary wizards that are not in the wizard collection */ private void trimPrimaryWizards() { ArrayList<IWizardDescriptor> newPrimaryWizards = new ArrayList<IWizardDescriptor>(primaryWizards.length); if (wizardCategories == null) { return;//No categories so nothing to trim } for (IWizardDescriptor primaryWizard : primaryWizards) { if (wizardCategories.findWizard(primaryWizard.getId()) != null) { newPrimaryWizards.add(primaryWizard); } } primaryWizards = newPrimaryWizards.toArray(new WorkbenchWizardElement[newPrimaryWizards.size()]); }
/** * Remove all primary wizards that are not in the wizard collection */ private void trimPrimaryWizards() { ArrayList newPrimaryWizards = new ArrayList(primaryWizards.length); if (wizardCategories == null) { return;//No categories so nothing to trim } for (IWizardDescriptor primaryWizard : primaryWizards) { if (wizardCategories.findWizard(primaryWizard.getId()) != null) { newPrimaryWizards.add(primaryWizard); } } primaryWizards = (WorkbenchWizardElement[]) newPrimaryWizards .toArray(new WorkbenchWizardElement[newPrimaryWizards.size()]); }
@Override public String getLocalId() { IPluginContribution contribution = Adapters.adapt(wizardElement, IPluginContribution.class); if (contribution != null) { return contribution.getLocalId(); } return wizardElement.getId(); }
@Override public String getLocalId() { IPluginContribution contribution = getPluginContribution(); if (contribution != null) { return contribution.getLocalId(); } return wizardElement.getId(); }
private void addParameterValues(Map values, IWizardCategory wizardCategory) { for (final IWizardDescriptor wizardDescriptor : wizardCategory.getWizards()) { // Note: using description instead of label for the name // to reduce possibilities of key collision in the map // final String name = wizardDescriptor.getDescription(); // by request String name = wizardDescriptor.getLabel(); final String id = wizardDescriptor.getId(); final String value = (String) values.get(name); if (value!=null && !value.equals(id)) { name = name + " (" + id + ")"; //$NON-NLS-1$//$NON-NLS-2$ } values.put(name, id); } for (final IWizardCategory childCategory : wizardCategory.getCategories()) { addParameterValues(values, childCategory); } }
/** * Stores the currently-selected element in this page's dialog store, in order to recreate this page's state in the * next instance of this page. */ protected void storeSelectedCategoryAndWizard() { Object selected = getSingleSelection((IStructuredSelection) filteredTree.getViewer().getSelection()); if (selected != null) { if (selected instanceof IWizardCategory) { settings.put(STORE_SELECTED_ID, ((IWizardCategory) selected).getPath().toString()); } else { // else its a wizard settings.put(STORE_SELECTED_ID, ((IWizardDescriptor) selected).getId()); } } }
/** * Stores the currently-selected element in this page's dialog store, in * order to recreate this page's state in the next instance of this page. */ protected void storeSelectedCategoryAndWizard() { Object selected = getSingleSelection(filteredTree.getViewer().getStructuredSelection()); if (selected != null) { if (selected instanceof IWizardCategory) { settings.put(STORE_SELECTED_ID, ((IWizardCategory) selected).getPath() .toString()); } else { // else its a wizard settings.put(STORE_SELECTED_ID, ((IWizardDescriptor) selected).getId()); } } }
/** * Stores the currently-selected element in this page's dialog store, in * order to recreate this page's state in the next instance of this page. */ protected void storeSelectedCategoryAndWizard(String setting, TreeViewer viewer) { Object selected = viewer.getStructuredSelection().getFirstElement(); if (selected != null) { if (selected instanceof IWizardCategory) { getDialogSettings().put(setting, ((IWizardCategory) selected).getPath() .toString()); } else { // else its a wizard getDialogSettings().put(setting, ((IWizardDescriptor) selected).getId()); } } }
if (BPMN2_MODELER_JBPM_WIZARD.equals(wizard.getId())) { bpmn2ModelerWizard = wizard; break; for(IWizardDescriptor wizard : category.getWizards()) { for (String id : wizardIdsToRemove) { if (id.equals(wizard.getId())) { WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard; wizardRegistry.removeExtension(wizardElement.getConfigurationElement().getDeclaringExtension(), new Object[]{wizardElement});