Search in sources :

Example 1 with BuilderBasedTemplate

use of com.intellij.platform.templates.BuilderBasedTemplate in project liferay-ide by liferay.

the class LiferayProjectTypeStep method _setTemplatesList.

private void _setTemplatesList(TemplatesGroup group, Collection<ProjectTemplate> templates, boolean preserveSelection) {
    List<ProjectTemplate> list = new ArrayList<>(templates);
    ModuleBuilder moduleBuilder = group.getModuleBuilder();
    if ((moduleBuilder != null) && !(moduleBuilder instanceof TemplateModuleBuilder)) {
        list.add(0, new BuilderBasedTemplate(moduleBuilder));
    }
    _templatesList.setTemplates(list, preserveSelection);
}
Also used : BuilderBasedTemplate(com.intellij.platform.templates.BuilderBasedTemplate) ModuleBuilder(com.intellij.ide.util.projectWizard.ModuleBuilder) TemplateModuleBuilder(com.intellij.platform.templates.TemplateModuleBuilder) ArrayList(java.util.ArrayList) TemplateModuleBuilder(com.intellij.platform.templates.TemplateModuleBuilder) ProjectTemplate(com.intellij.platform.ProjectTemplate)

Aggregations

ModuleBuilder (com.intellij.ide.util.projectWizard.ModuleBuilder)1 ProjectTemplate (com.intellij.platform.ProjectTemplate)1 BuilderBasedTemplate (com.intellij.platform.templates.BuilderBasedTemplate)1 TemplateModuleBuilder (com.intellij.platform.templates.TemplateModuleBuilder)1 ArrayList (java.util.ArrayList)1