use of com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable in project intellij-community by JetBrains.
the class ModulesConfigurator method showFacetSettingsDialog.
public static boolean showFacetSettingsDialog(@NotNull final Facet facet, @Nullable final String tabNameToSelect) {
final Project project = facet.getModule().getProject();
final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(project);
return ShowSettingsUtil.getInstance().editConfigurable(project, config, () -> {
final ModuleStructureConfigurable modulesConfig = config.getModulesConfig();
config.select(facet, true).doWhenDone(() -> {
if (tabNameToSelect != null) {
FacetEditorImpl facetEditor = modulesConfig.getFacetConfigurator().getOrCreateEditor(facet);
facetEditor.setSelectedTabName(tabNameToSelect);
}
});
});
}
use of com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable 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();
}
}
Aggregations