use of com.intellij.facet.impl.ui.FacetEditorImpl 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);
}
});
});
}
Aggregations