public void handleOK() { TreeItem[] ti = wTree.getSelection(); if (ti.length == 1) { String[] tree = ConstUI.getTreeStrings(ti[0]); selection = repositoryTree.findDirectory(tree); dispose(); } }
@Override public String toString() { if (Utils.isEmpty(filename)) { String dir = directory.toString(); if (dir.endsWith("/")) { return dir + name + " (" + objectType.getTypeDescription() + ")"; } else { return dir + "/" + name + " (" + objectType.getTypeDescription() + ")"; } } else { return filename; } }