mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
if facet has associated framework show 'add facet' instead of 'add framework support' dialog in Project Structure (IDEA-120643, IDEA-113833)
This commit is contained in:
@@ -100,14 +100,14 @@ public class AddFacetToModuleAction extends AnAction implements DumbAware {
|
||||
|
||||
public static Collection<AnAction> createAddFrameworkActions(FacetEditorFacade editor, Project project) {
|
||||
SortedMap<String, AnAction> actions = new TreeMap<String, AnAction>();
|
||||
for (FacetType type : FacetTypeRegistry.getInstance().getFacetTypes()) {
|
||||
actions.put(type.getPresentableName(), new AddFacetToModuleAction(editor, project, type));
|
||||
}
|
||||
for (FrameworkTypeEx frameworkType : FrameworkTypeEx.EP_NAME.getExtensions()) {
|
||||
final AnAction action = new AddFrameworkSupportInProjectStructureAction(frameworkType, frameworkType.createProvider(),
|
||||
final AnAction action = new AddFrameworkSupportInProjectStructureAction(frameworkType, frameworkType.createProvider(),
|
||||
ModuleStructureConfigurable.getInstance(project));
|
||||
actions.put(frameworkType.getPresentableName(), action);
|
||||
}
|
||||
for (FacetType type : FacetTypeRegistry.getInstance().getFacetTypes()) {
|
||||
actions.put(type.getPresentableName(), new AddFacetToModuleAction(editor, project, type));
|
||||
}
|
||||
return actions.values();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user