Merge pull request #208 from Abextm/package-class-colision

Include .class in the name when comparing with the file tree
This commit is contained in:
Kalen (Konloch) Kinloch 2018-07-13 22:18:56 -06:00 committed by GitHub
commit 3dd6951a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -321,6 +321,8 @@ public class FileNavigationPane extends VisibleComponent implements
MyTreeNode parent = root;
for (int i1 = 0; i1 < spl.length; i1++) {
String s = spl[i1];
if (i1 == spl.length - 1)
s += ".class";
MyTreeNode child = null;
for (int i = 0; i < parent.getChildCount(); i++) {
if (((MyTreeNode) parent.getChildAt(i)).getUserObject()
@ -330,10 +332,7 @@ public class FileNavigationPane extends VisibleComponent implements
}
}
if (child == null) {
if (i1 == spl.length - 1)
child = new MyTreeNode(s + ".class");
else
child = new MyTreeNode(s);
child = new MyTreeNode(s);
parent.add(child);
}
parent = child;