use of com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory in project intellij-community by JetBrains.
the class PythonModuleConfigurationEditorProvider method createEditors.
public ModuleConfigurationEditor[] createEditors(final ModuleConfigurationState state) {
final Module module = state.getRootModel().getModule();
if (!(ModuleType.get(module) instanceof PythonModuleType))
return ModuleConfigurationEditor.EMPTY;
final DefaultModuleConfigurationEditorFactory editorFactory = DefaultModuleConfigurationEditorFactory.getInstance();
final List<ModuleConfigurationEditor> editors = new ArrayList<>();
editors.add(new PyContentEntriesEditor(module, state, false, JavaSourceRootType.SOURCE));
editors.add(editorFactory.createClasspathEditor(state));
return editors.toArray(new ModuleConfigurationEditor[editors.size()]);
}
use of com.intellij.openapi.roots.ui.configuration.DefaultModuleConfigurationEditorFactory 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()]);
}
Aggregations