Qodana: add property for suppressed plugin ids list.
[idea/community.git] / java / idea-ui / src / com / intellij / openapi / roots / ui / configuration / artifacts / sourceItems / LibrarySourceItem.java
index 6b65f5a31474ef21c24ef0e611288ed890ba28f0..634202081d7be7179bcf4bcbd712def148d55b1f 100644 (file)
@@ -15,6 +15,7 @@
  */
 package com.intellij.openapi.roots.ui.configuration.artifacts.sourceItems;
 
+import com.intellij.ide.JavaUiBundle;
 import com.intellij.ide.presentation.VirtualFilePresentation;
 import com.intellij.ide.projectView.PresentationData;
 import com.intellij.openapi.roots.OrderRootType;
@@ -111,7 +112,7 @@ public class LibrarySourceItem extends PackagingSourceItem {
       else {
         if (((LibraryEx)myLibrary).isDisposed()) {
           //todo[nik] disposed library should not be shown in the tree
-          presentationData.addText("Invalid Library", SimpleTextAttributes.ERROR_ATTRIBUTES);
+          presentationData.addText(JavaUiBundle.message("library.source.item.label.invalid.library"), SimpleTextAttributes.ERROR_ATTRIBUTES);
           return;
         }
         final VirtualFile[] files = myLibrary.getFiles(OrderRootType.CLASSES);
@@ -121,7 +122,7 @@ public class LibrarySourceItem extends PackagingSourceItem {
           presentationData.addText(file.getName(), mainAttributes);
         }
         else {
-          presentationData.addText("Empty Library", SimpleTextAttributes.ERROR_ATTRIBUTES);
+          presentationData.addText(JavaUiBundle.message("library.source.item.label.empty.library"), SimpleTextAttributes.ERROR_ATTRIBUTES);
         }
       }
     }