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);
}
Aggregations