Search in sources :

Example 6 with CompositeConfigurable

use of com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable in project intellij-plugins by JetBrains.

the class FlexBCConfigurator method apply.

public void apply() throws ConfigurationException {
    final ModuleStructureConfigurable c = ProjectStructureConfigurable.getInstance(myConfigEditor.getProject()).getModulesConfig();
    for (final CompositeConfigurable configurable : myConfigurablesMap.values()) {
        c.ensureInitialized(configurable);
        if (configurable.isModified()) {
            configurable.apply();
        }
    }
    if (myConfigEditor.isModified()) {
        myConfigEditor.checkCanCommit();
        myConfigEditor.commit();
    }
}
Also used : ModuleStructureConfigurable(com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable) CompositeConfigurable(com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable)

Example 7 with CompositeConfigurable

use of com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable in project intellij-plugins by JetBrains.

the class FlexBCConfigurator method getOrCreateConfigurables.

public List<CompositeConfigurable> getOrCreateConfigurables(final Module module, final Runnable treeNodeNameUpdater) {
    myModifiableModelInitializer.ensureInitialized(module.getProject());
    final ModifiableFlexBuildConfiguration[] configurations = myConfigEditor.getConfigurations(module);
    List<CompositeConfigurable> configurables = new ArrayList<>(configurations.length);
    for (final ModifiableFlexBuildConfiguration bc : configurations) {
        CompositeConfigurable configurable = myConfigurablesMap.get(bc);
        if (configurable == null) {
            myConfigurablesMap.put(bc, configurable = createBcConfigurable(module, bc, treeNodeNameUpdater));
        }
        configurables.add(configurable);
    }
    return configurables;
}
Also used : CompositeConfigurable(com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable) ModifiableFlexBuildConfiguration(com.intellij.lang.javascript.flex.projectStructure.model.ModifiableFlexBuildConfiguration)

Aggregations

CompositeConfigurable (com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable)7 ModuleStructureConfigurable (com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable)3 ModifiableFlexBuildConfiguration (com.intellij.lang.javascript.flex.projectStructure.model.ModifiableFlexBuildConfiguration)2 ProjectStructureDaemonAnalyzer (com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.ProjectStructureDaemonAnalyzer)2 Place (com.intellij.ui.navigation.Place)2 Dependencies (com.intellij.lang.javascript.flex.projectStructure.model.Dependencies)1 DependencyEntry (com.intellij.lang.javascript.flex.projectStructure.model.DependencyEntry)1 ModuleLibraryEntry (com.intellij.lang.javascript.flex.projectStructure.model.ModuleLibraryEntry)1 FlexBCConfigurable (com.intellij.lang.javascript.flex.projectStructure.ui.FlexBCConfigurable)1 LibraryOrderEntry (com.intellij.openapi.roots.LibraryOrderEntry)1 LibraryEx (com.intellij.openapi.roots.impl.libraries.LibraryEx)1 Library (com.intellij.openapi.roots.libraries.Library)1 MasterDetailsComponent (com.intellij.openapi.ui.MasterDetailsComponent)1 Nullable (org.jetbrains.annotations.Nullable)1