Search in sources :

Example 1 with ModuleConfigurationState

use of com.intellij.openapi.roots.ui.configuration.ModuleConfigurationState in project intellij-community by JetBrains.

the class ProjectFacetsConfigurator method createContext.

protected FacetEditorContext createContext(@NotNull final Facet facet, @Nullable final FacetEditorContext parentContext) {
    Module module = facet.getModule();
    ModulesConfigurator modulesConfigurator = myContext.getModulesConfigurator();
    ModuleEditor moduleEditor = modulesConfigurator.getModuleEditor(module);
    if (moduleEditor == null) {
        LOG.error("ModuleEditor[" + module.getName() + "]==null: disposed = " + module.isDisposed() + ", is in model = " + Arrays.asList(modulesConfigurator.getModules()).contains(module));
    }
    final ModuleConfigurationState state = moduleEditor.createModuleConfigurationState();
    return new MyProjectConfigurableContext(facet, parentContext, state);
}
Also used : ModuleConfigurationState(com.intellij.openapi.roots.ui.configuration.ModuleConfigurationState) ModulesConfigurator(com.intellij.openapi.roots.ui.configuration.ModulesConfigurator) Module(com.intellij.openapi.module.Module) ModuleEditor(com.intellij.openapi.roots.ui.configuration.ModuleEditor)

Aggregations

Module (com.intellij.openapi.module.Module)1 ModuleConfigurationState (com.intellij.openapi.roots.ui.configuration.ModuleConfigurationState)1 ModuleEditor (com.intellij.openapi.roots.ui.configuration.ModuleEditor)1 ModulesConfigurator (com.intellij.openapi.roots.ui.configuration.ModulesConfigurator)1