Search in sources :

Example 1 with WizardDelegate

use of com.intellij.ide.util.newProjectWizard.WizardDelegate in project liferay-ide by liferay.

the class LiferayProjectTypeStep method _updateSelection.

private void _updateSelection() {
    ProjectTemplate template = getSelectedTemplate();
    if (template != null) {
        _context.setProjectTemplate(template);
    }
    ModuleBuilder builder = _getSelectedBuilder();
    _context.setProjectBuilder(builder);
    if (builder != null) {
        StepSequence stepSequence = _wizard.getSequence();
        stepSequence.setType(builder.getBuilderId());
    }
    _wizard.setDelegate(builder instanceof WizardDelegate ? (WizardDelegate) builder : null);
    _wizard.updateWizardButtons();
}
Also used : StepSequence(com.intellij.ide.util.newProjectWizard.StepSequence) ModuleBuilder(com.intellij.ide.util.projectWizard.ModuleBuilder) TemplateModuleBuilder(com.intellij.platform.templates.TemplateModuleBuilder) WizardDelegate(com.intellij.ide.util.newProjectWizard.WizardDelegate) ProjectTemplate(com.intellij.platform.ProjectTemplate)

Aggregations

StepSequence (com.intellij.ide.util.newProjectWizard.StepSequence)1 WizardDelegate (com.intellij.ide.util.newProjectWizard.WizardDelegate)1 ModuleBuilder (com.intellij.ide.util.projectWizard.ModuleBuilder)1 ProjectTemplate (com.intellij.platform.ProjectTemplate)1 TemplateModuleBuilder (com.intellij.platform.templates.TemplateModuleBuilder)1