Package org.eclipse.ui.internal.dialogs

Examples of org.eclipse.ui.internal.dialogs.WorkbenchWizardElement


      if (object instanceof WizardCollectionElement) {
        // TODO: should we move child wizards to the "other" node?
        WizardCollectionElement collection = (WizardCollectionElement) object;
        collection.getParentCollection().remove(collection);
      } else if (object instanceof WorkbenchWizardElement) {
        WorkbenchWizardElement wizard = (WorkbenchWizardElement) object;
        WizardCollectionElement parent = wizard.getCollectionElement();
        if (parent != null) {
          parent.remove(wizard);
        }
        IWizardDescriptor[] primaryWizards = getPrimaryWizards();
        for (int j = 0; j < primaryWizards.length; j++) {
View Full Code Here


    private void finishPrimary() {
        if (deferPrimary != null) {
            ArrayList primary = new ArrayList();
            for (Iterator i = deferPrimary.iterator(); i.hasNext();) {
                String id = (String) i.next();
                WorkbenchWizardElement element = getWizardElements()
                        .findWizard(id, true);
                if (element != null) {
                    primary.add(element);
                }
            }
View Full Code Here

     */
    private void finishWizards() {
        if (deferWizards != null) {
            Iterator iter = deferWizards.iterator();
            while (iter.hasNext()) {
                WorkbenchWizardElement wizard = (WorkbenchWizardElement) iter
                        .next();
                IConfigurationElement config = wizard.getConfigurationElement();
                finishWizard(wizard, config);
            }
            deferWizards = null;
        }
    }
View Full Code Here

            return true;
        } else {
            if (!element.getName().equals(IWorkbenchRegistryConstants.TAG_WIZARD)) {
        return false;
      }
            WorkbenchWizardElement wizard = createWizardElement(element);
            if (wizard != null) {
        addNewElementToResult(wizard, element);
      }
            return true;
        }
View Full Code Here

       
        if (getClassValue(element, IWorkbenchRegistryConstants.ATT_CLASS) == null) {      
            logMissingAttribute(element, IWorkbenchRegistryConstants.ATT_CLASS);
            return null;
        }
        return new WorkbenchWizardElement(element);
    }
View Full Code Here

     */
    public WorkbenchWizardElement findWizard(String id) {
        Object[] wizards = getWizardCollectionElements();
        for (int nX = 0; nX < wizards.length; nX++) {
            WizardCollectionElement collection = (WizardCollectionElement) wizards[nX];
            WorkbenchWizardElement element = collection.findWizard(id, true);
            if (element != null) {
        return element;
      }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.dialogs.WorkbenchWizardElement

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.