Updating versions of project dependencies: jdkBuild->11_0_8b1098.1
[idea/community.git] / platform / projectModel-api / src / com / intellij / openapi / roots / libraries / LibraryUtil.java
index 4d59c0169d171068725a33dfc0ddb7c962d17d60..33c414df5015beea05b9a4aeb5b5c46d008cf69a 100644 (file)
@@ -10,9 +10,11 @@ import com.intellij.openapi.roots.impl.libraries.LibraryEx;
 import com.intellij.openapi.util.Ref;
 import com.intellij.openapi.vfs.VfsUtilCore;
 import com.intellij.openapi.vfs.VirtualFile;
+import com.intellij.projectModel.ProjectModelBundle;
 import com.intellij.util.PathUtil;
 import com.intellij.util.containers.ContainerUtil;
 import com.intellij.util.text.StringTokenizer;
+import org.jetbrains.annotations.Nls;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -146,18 +148,18 @@ public final class LibraryUtil {
   }
 
   @NotNull
-  public static String getPresentableName(@NotNull Library library) {
+  public static @Nls(capitalization = Nls.Capitalization.Title) String getPresentableName(@NotNull Library library) {
     final String name = library.getName();
     if (name != null) {
       return name;
     }
     if (library instanceof LibraryEx && ((LibraryEx)library).isDisposed()) {
-      return "Disposed Library";
+      return ProjectModelBundle.message("disposed.library.title");
     }
     String[] urls = library.getUrls(OrderRootType.CLASSES);
     if (urls.length > 0) {
       return PathUtil.getFileName(VfsUtilCore.urlToPath(urls[0]));
     }
-    return "Empty Library";
+    return ProjectModelBundle.message("empty.library.title");
   }
 }