- Timestamp:
- 2010-12-13T13:24:20+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionTree.java
r19239 r23455 28 28 29 29 import java.awt.*; 30 import java.awt.dnd.DropTargetDropEvent; 30 31 import java.awt.event.*; 31 32 import javax.swing.*; … … 69 70 } 70 71 72 // Overridden here: when a successful drag and drop takes place 73 // make sure nothing is selected in the tree, so that no valueChanged() 74 // event gets fired anymore by items getting reselected in the tree 75 // (this used to result in the metadata table in EnrichPane being updated 76 // upon its valueChanged() getting called and funny things happened to 77 // the metadata due to state inconsistencies). 78 public void drop(DropTargetDropEvent event) { 79 if (!isDroppable()) { 80 return; 81 } 82 83 setImmediate(true); 84 clearSelection(); 85 setImmediate(false); 86 87 // let the superclass' drop() process the rest of the drag event 88 super.drop(event); 89 90 } 71 91 72 92 public void mouseClicked(MouseEvent event)
Note:
See TracChangeset
for help on using the changeset viewer.