use of com.intellij.openapi.module.ModuleConfigurationEditor in project intellij-community by JetBrains.
the class ModuleEditor method dispose.
@Override
public void dispose() {
try {
for (final ModuleConfigurationEditor myEditor : myEditors) {
myEditor.disposeUIResources();
}
myEditors.clear();
disposeCenterPanel();
if (myModifiableRootModel != null) {
myModifiableRootModel.dispose();
}
myGenericSettingsPanel = null;
} finally {
myModifiableRootModel = null;
myModifiableRootModelProxy = null;
}
}
use of com.intellij.openapi.module.ModuleConfigurationEditor in project intellij-community by JetBrains.
the class ModuleEditor method apply.
public ModifiableRootModel apply() throws ConfigurationException {
try {
for (ModuleConfigurationEditor editor : myEditors) {
editor.saveData();
editor.apply();
}
return myModifiableRootModel;
} finally {
myModifiableRootModel = null;
myModifiableRootModelProxy = null;
}
}
use of com.intellij.openapi.module.ModuleConfigurationEditor in project intellij-community by JetBrains.
the class ModuleEditor method init.
public void init(History history) {
myHistory = history;
for (ModuleConfigurationEditor each : myEditors) {
if (each instanceof ModuleElementsEditor) {
((ModuleElementsEditor) each).setHistory(myHistory);
}
}
restoreSelectedEditor();
}
use of com.intellij.openapi.module.ModuleConfigurationEditor 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