Search in sources :

Example 1 with PluginModuleBuildConfEditor

use of org.jetbrains.idea.devkit.build.PluginModuleBuildConfEditor in project intellij-community by JetBrains.

the class PluginModuleEditorsProvider method createEditors.

public ModuleConfigurationEditor[] createEditors(ModuleConfigurationState state) {
    final Module module = state.getRootModel().getModule();
    if (ModuleType.get(module) != PluginModuleType.getInstance())
        return ModuleConfigurationEditor.EMPTY;
    final DefaultModuleConfigurationEditorFactory editorFactory = DefaultModuleConfigurationEditorFactory.getInstance();
    List<ModuleConfigurationEditor> editors = new ArrayList<>();
    editors.add(editorFactory.createModuleContentRootsEditor(state));
    editors.add(editorFactory.createOutputEditor(state));
    editors.add(editorFactory.createClasspathEditor(state));
    editors.add(new PluginModuleBuildConfEditor(state));
    return editors.toArray(new ModuleConfigurationEditor[editors.size()]);
}
Also used : DefaultModuleConfigurationEditorFactory(com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory) ModuleConfigurationEditor(com.intellij.openapi.module.ModuleConfigurationEditor) ArrayList(java.util.ArrayList) PluginModuleBuildConfEditor(org.jetbrains.idea.devkit.build.PluginModuleBuildConfEditor) Module(com.intellij.openapi.module.Module)

Aggregations

Module (com.intellij.openapi.module.Module)1 ModuleConfigurationEditor (com.intellij.openapi.module.ModuleConfigurationEditor)1 DefaultModuleConfigurationEditorFactory (com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory)1 ArrayList (java.util.ArrayList)1 PluginModuleBuildConfEditor (org.jetbrains.idea.devkit.build.PluginModuleBuildConfEditor)1