Search in sources :

Example 1 with EmptyModuleBuilder

use of com.intellij.ide.util.projectWizard.EmptyModuleBuilder 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();
}
Also used : ModuleBuilder(com.intellij.ide.util.projectWizard.ModuleBuilder) TemplateModuleBuilder(com.intellij.platform.templates.TemplateModuleBuilder) EmptyModuleBuilder(com.intellij.ide.util.projectWizard.EmptyModuleBuilder) TemplateModuleBuilder(com.intellij.platform.templates.TemplateModuleBuilder) JComponent(javax.swing.JComponent) Component(java.awt.Component) EmptyModuleBuilder(com.intellij.ide.util.projectWizard.EmptyModuleBuilder)

Aggregations

EmptyModuleBuilder (com.intellij.ide.util.projectWizard.EmptyModuleBuilder)1 ModuleBuilder (com.intellij.ide.util.projectWizard.ModuleBuilder)1 TemplateModuleBuilder (com.intellij.platform.templates.TemplateModuleBuilder)1 Component (java.awt.Component)1 JComponent (javax.swing.JComponent)1