IDEA-251030 Icons are not shown in Database toolwindow popup menu
[idea/community.git] / java / idea-ui / src / com / intellij / jarRepository / RepositoryLibraryType.java
index 5090e2effecf969d1b2e52fa6e3e0df9d61f9bdf..217953a12180963209ca5bb8d04c6f2a2076db98 100644 (file)
@@ -35,7 +35,7 @@ import javax.swing.*;
 public class RepositoryLibraryType extends LibraryType<RepositoryLibraryProperties> {
 
   public static final PersistentLibraryKind<RepositoryLibraryProperties>
-    REPOSITORY_LIBRARY_KIND = new PersistentLibraryKind<RepositoryLibraryProperties>("repository") {
+    REPOSITORY_LIBRARY_KIND = new PersistentLibraryKind<>("repository") {
     @NotNull
     @Override
     public RepositoryLibraryProperties createDefaultProperties() {
@@ -82,7 +82,8 @@ public class RepositoryLibraryType extends LibraryType<RepositoryLibraryProperti
   @Override
   public String getDescription(@NotNull RepositoryLibraryProperties properties) {
     RepositoryLibraryDescription description = RepositoryLibraryDescription.findDescription(properties);
-    return "Maven: " + description.getDisplayName(properties.getVersion());
+    final String name = description.getDisplayName(properties.getVersion());
+    return JavaUiBundle.message("repository.library.type.maven.description", name);
   }
 
   @Nullable