コード例 #1
0
 public void handleOK() {
   TreeItem[] ti = wTree.getSelection();
   if (ti.length == 1) {
     String[] tree = ConstUI.getTreeStrings(ti[0]);
     selection = repositoryTree.findDirectory(tree);
     dispose();
   }
 }
コード例 #2
0
 @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;
   }
 }