mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
settings: fixed SIOBE in 'Schemas and DTDs' table
If it contains a file located directly under JAR root StringIndexOutOfBoundsException was thrown.
This commit is contained in:
@@ -198,7 +198,8 @@ public class ConfigFilesTreeBuilder {
|
||||
if (i >= 0) {
|
||||
path = path.substring(i + JarFileSystem.JAR_SEPARATOR.length());
|
||||
}
|
||||
renderer.append(" (" + path.substring(0, path.length() - virtualFile.getName().length() - 1) + ")", SimpleTextAttributes.GRAYED_ATTRIBUTES);
|
||||
renderer.append(" (" + StringUtil.trimEnd(StringUtil.trimEnd(path, virtualFile.getName()), "/") + ")",
|
||||
SimpleTextAttributes.GRAYED_ATTRIBUTES);
|
||||
}
|
||||
|
||||
public static void installSearch(JTree tree) {
|
||||
|
||||
Reference in New Issue
Block a user