protected IWizardNode createWizardNode(WizardElement element) { return new WizardNode(this, element) { public IBaseProjectWizard createWizard() throws CoreException { IProjectContentWizard wizard = (IProjectContentWizard) wizardElement.createExecutableExtension(); wizard.init(fContext); return wizard; } }; // return null; }
/** * Adds the given wizard node to the list of selected nodes if it is not already in the list. * * @param node * the wizard node, or <code>null</code> */ private void addSelectedNode(IWizardNode node) { if (node == null) { return; } if (selectedWizardNodes.contains(node)) { return; } selectedWizardNodes.add(node); }
/** * The <code>WizardSelectionPage</code> implementation of an <code>IDialogPage</code> method disposes of all nested * wizards. Subclasses may extend. */ @Override public void dispose() { super.dispose(); // notify nested wizards for (int i = 0; i < selectedWizardNodes.size(); i++) { ((IWizardNode) selectedWizardNodes.get(i)).dispose(); } }
/** * Sets or clears the currently selected wizard node within this page. * * @param node * the wizard node, or <code>null</code> to clear */ protected void setSelectedNode(IWizardNode node) { addSelectedNode(node); selectedNode = node; if (isCurrentPage()) { getContainer().updateButtons(); } }
/** * Sets or clears the currently selected wizard node within this page. * * @param inNode * the wizard node, or <code>null</code> to clear */ protected void setSelectedNode(final IWizardNode inNode) { addSelectedNode(inNode); selectedNode = inNode; if (isCurrentPage()) { getContainer().updateButtons(); } }
/** * Adds the given wizard node to the list of selected nodes if it is not * already in the list. * * @param inNode * the wizard node, or <code>null</code> */ private void addSelectedNode(final IWizardNode inNode) { if (inNode == null) { return; } if (selectedWizardNodes.contains(inNode)) { return; } selectedWizardNodes.add(inNode); }
protected IWizardNode createWizardNode(WSO2PluginSampleExt element) { return null; }
/** * @param inSelectedNode */ public void selectWizardNode(final IWizardNode inSelectedNode) { setSelectedNode(inSelectedNode); }
/** * Returns the currently selected wizard node within this page. * * @return the wizard node, or <code>null</code> if no node is selected */ public IWizardNode getSelectedNode() { return selectedNode; }
protected abstract IWizardNode createWizardNode(WizardElement element);