Merge pull request #79 from maaatts/master
Made searching case sensitive
This commit is contained in:
commit
87876aa09c
1 changed files with 4 additions and 4 deletions
|
@ -145,7 +145,7 @@ public class FileNavigationPane extends VisibleComponent implements
|
|||
|
||||
MyTreeNode node = enums.nextElement();
|
||||
if (node.isLeaf()) {
|
||||
if (((String) (node.getUserObject())).toLowerCase().contains(path[path.length - 1].toLowerCase())) {
|
||||
if (((String) (node.getUserObject())).contains(path[path.length - 1])) {
|
||||
TreeNode pathArray[] = node.getPath();
|
||||
int k = 0;
|
||||
StringBuffer fullPath = new StringBuffer();
|
||||
|
@ -159,7 +159,7 @@ public class FileNavigationPane extends VisibleComponent implements
|
|||
}
|
||||
}
|
||||
String fullPathString = fullPath.toString();
|
||||
if (fullPathString != null && fullPathString.toLowerCase().contains(qt.toLowerCase())) {
|
||||
if (fullPathString != null && fullPathString.contains(qt)) {
|
||||
System.out.println("Found! " + node);
|
||||
final TreePath pathn = new TreePath(node.getPath());
|
||||
tree.setSelectionPath(pathn.getParentPath());
|
||||
|
@ -573,7 +573,7 @@ public class FileNavigationPane extends VisibleComponent implements
|
|||
|
||||
if(value != null && value instanceof the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode) {
|
||||
the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode node = (the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode) value;
|
||||
String name = node.toString().toLowerCase();
|
||||
String name = node.toString();
|
||||
|
||||
if(name.endsWith(".jar")) {
|
||||
setIcon(Resources.jarIcon);
|
||||
|
@ -650,4 +650,4 @@ public class FileNavigationPane extends VisibleComponent implements
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue