dependencies editor: show more detailed text for unnamed module libraries composed of several files (IDEA-154044)

This commit is contained in:
nik
2016-04-06 15:35:46 +03:00
parent f65ce519f7
commit 6b944e5aa3
2 changed files with 3 additions and 1 deletions
@@ -110,7 +110,8 @@ public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService
}
final String url = StringUtil.trimEnd(files[0], JarFileSystem.JAR_SEPARATOR);
return SimpleTextCellAppearance.regular(PathUtil.getFileName(url), PlatformIcons.LIBRARY_ICON);
String text = ProjectBundle.message("library.unnamed.text", PathUtil.getFileName(url), files.length - 1);
return SimpleTextCellAppearance.regular(text, PlatformIcons.LIBRARY_ICON);
}
@NotNull
@@ -198,6 +198,7 @@ library.sources.node=Sources
project.order.entry.project=<Project>
jdk.missing.item=<No SDK>
library.empty.library.item=Empty Library
library.unnamed.text={0} and {1, choice, 1#one more file|2#{1} more files}
module.type.java.name=Java Module
module.type.java.description=Java modules are used for developing <b>JVM-based</b> desktop and web applications, including applications that use <b>Java EE</b> and other enterprise development frameworks.
module.type.unknown.name=Unknown module type. Used \"{0}\" as a substitute