Changeset 5865
- Timestamp:
- 2003-11-18T08:42:10+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r5854 r5865 256 256 } 257 257 } 258 258 259 259 } 260 260 … … 323 323 event.acceptDrop(drag_action); 324 324 if(!name.equals(Utility.WORKSPACE_TREE)) { 325 // Determine what node we dropped over. 325 // Determine what node we dropped over. 326 326 Point pt = event.getLocation(); 327 327 TreePath target_path = this.getPathForLocation(pt.x, pt.y); … … 603 603 } 604 604 } 605 606 /** returns false for dummy nodes (ones without files), and system root 605 606 /** returns false for dummy nodes (ones without files), and system root 607 607 * nodes */ 608 608 private boolean isValidDrag() { … … 610 610 TreePath node_path = getSelectionPath(); 611 611 FileNode node = (FileNode) node_path.getLastPathComponent(); 612 612 613 613 if (node.getFile() == null) { 614 614 return false;
Note:
See TracChangeset
for help on using the changeset viewer.