Qodana: add property for suppressed plugin ids list.
[idea/community.git] / java / idea-ui / src / com / intellij / openapi / roots / ui / configuration / artifacts / actions / HideContentAction.java
index d86b89e89294d325981f7f841e5e752b1081b038..ae3073c8ada74978d6142265bd321744d965a0ba 100644 (file)
@@ -41,15 +41,9 @@ public class HideContentAction extends DumbAwareAction {
     if (node != null) {
       final Collection<PackagingNodeSource> sources = node.getNodeSources();
       if (!sources.isEmpty()) {
-        String description;
-        if (sources.size() == 1) {
-          description = "Hide Content of '" + sources.iterator().next().getPresentableName() + "'";
-        }
-        else {
-          description = "Hide Content";
-        }
+        final String name = sources.iterator().next().getPresentableName();
         e.getPresentation().setVisible(true);
-        e.getPresentation().setText(description);
+        e.getPresentation().setText(JavaUiBundle.message("action.hide.content.text", name, sources.size()));
         return;
       }
     }