IDEA-251030 Icons are not shown in Database toolwindow popup menu
[idea/community.git] / java / idea-ui / src / com / intellij / facet / impl / ui / FacetEditorImpl.java
index 1f35f82874dc89c3046f1b56fa28f393f7ab1dd6..e66a9d953c414c1c5cfd468f44144d593b16a3d3 100644 (file)
@@ -18,6 +18,7 @@ package com.intellij.facet.impl.ui;
 import com.intellij.facet.Facet;
 import com.intellij.facet.FacetConfiguration;
 import com.intellij.facet.ui.*;
+import com.intellij.ide.JavaUiBundle;
 import com.intellij.openapi.Disposable;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.options.Configurable;
@@ -107,7 +108,8 @@ public class FacetEditorImpl extends UnnamedConfigurableGroup implements Unnamed
         @Override
         public ValidationResult check() {
           if (isModified()) {
-            String text = ModificationOfImportedModelWarningComponent.getWarningText("Facet '" + myContext.getFacetName() + "'", externalSource);
+            String text = ModificationOfImportedModelWarningComponent.getWarningText(
+              JavaUiBundle.message("facet.banner.text", myContext.getFacetName()), externalSource);
             return new ValidationResult(text);
           }
           return ValidationResult.OK;