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:
commit
3dd6951a48
1 changed files with 3 additions and 4 deletions
|
@ -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,9 +332,6 @@ public class FileNavigationPane extends VisibleComponent implements
|
|||
}
|
||||
}
|
||||
if (child == null) {
|
||||
if (i1 == spl.length - 1)
|
||||
child = new MyTreeNode(s + ".class");
|
||||
else
|
||||
child = new MyTreeNode(s);
|
||||
parent.add(child);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue