From c798b7d30d7de961ca21fe919158b6d58795f08e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 31 Jan 2019 14:20:02 +0100 Subject: [PATCH] Show "Module..." instead of "New Module..." in context menu as well (IDEA-CR-42685) --- .../openapi/roots/ui/configuration/actions/NewModuleAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/actions/NewModuleAction.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/actions/NewModuleAction.java index 60b2fa697a75..2b9814ddfea7 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/actions/NewModuleAction.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/actions/NewModuleAction.java @@ -84,7 +84,7 @@ public class NewModuleAction extends AnAction implements DumbAware { public void update(@NotNull AnActionEvent e) { super.update(e); e.getPresentation().setEnabled(getEventProject(e) != null); - if (ActionPlaces.MAIN_MENU.equals(e.getPlace())) { + if (ActionPlaces.MAIN_MENU.equals(e.getPlace()) || ActionPlaces.isPopupPlace(e.getPlace())) { e.getPresentation().setText("Module..."); } }