use of com.intellij.platform.templates.TemplateModuleBuilder in project liferay-ide by liferay.
the class LiferayProjectSettingsStep method updateDataModel.
@Override
public void updateDataModel() {
_context.setProjectName(_namePathComponent.getNameValue());
_context.setProjectFileDirectory(_namePathComponent.getPath());
_formatPanel.updateData(_context);
_moduleNameLocationComponent.updateDataModel();
ProjectBuilder moduleBuilder = _context.getProjectBuilder();
if (moduleBuilder instanceof TemplateModuleBuilder) {
_context.setProjectStorageFormat(StorageScheme.DIRECTORY_BASED);
}
if (_settingsStep != null) {
_settingsStep.updateDataModel();
}
}
use of com.intellij.platform.templates.TemplateModuleBuilder in project intellij-community by JetBrains.
the class ProjectSettingsStep method setupPanels.
private void setupPanels() {
ModuleBuilder moduleBuilder = (ModuleBuilder) myWizardContext.getProjectBuilder();
restorePanel(myNamePathComponent, 4);
restorePanel(getModulePanel(), myWizardContext.isCreatingNewProject() ? 8 : 6);
restorePanel(myExpertPanel, myWizardContext.isCreatingNewProject() ? 1 : 0);
mySettingsStep = moduleBuilder == null ? null : moduleBuilder.modifySettingsStep(this);
myExpertPlaceholder.setVisible(!(moduleBuilder instanceof TemplateModuleBuilder) && myExpertPanel.getComponentCount() > 0);
for (int i = 0; i < 6; i++) {
getModulePanel().getComponent(i).setVisible(!(moduleBuilder instanceof EmptyModuleBuilder));
}
mySettingsPanel.revalidate();
mySettingsPanel.repaint();
}
use of com.intellij.platform.templates.TemplateModuleBuilder in project liferay-ide by liferay.
the class LiferayProjectSettingsStep method _setupPanels.
private void _setupPanels() {
ModuleBuilder moduleBuilder = (ModuleBuilder) _context.getProjectBuilder();
_restorePanel(_namePathComponent, 4);
_restorePanel(_getModulePanel(), _context.isCreatingNewProject() ? 8 : 6);
_restorePanel(_expertPanel, _context.isCreatingNewProject() ? 1 : 0);
_settingsStep = moduleBuilder == null ? null : moduleBuilder.modifySettingsStep(this);
_expertPlaceholder.setVisible(!(moduleBuilder instanceof TemplateModuleBuilder) && _expertPanel.getComponentCount() > 0);
for (int i = 0; i < 6; i++) {
Component component = _getModulePanel().getComponent(i);
component.setVisible(!(moduleBuilder instanceof EmptyModuleBuilder));
}
_settingsPanel.revalidate();
_settingsPanel.repaint();
}
use of com.intellij.platform.templates.TemplateModuleBuilder 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