private String lastAction;
private void describe(String type, DropTargetEvent e) {
if (false) {
String msg = "drop: " + type;
if (e instanceof DropTargetDragEvent) {
DropTargetContext dtc = e.getDropTargetContext();
DropTarget dt = dtc.getDropTarget();
DropTargetDragEvent ev = (DropTargetDragEvent)e;
msg += ": src=" + DragHandler.actionString(ev.getSourceActions())
+ " tgt=" + DragHandler.actionString(dt.getDefaultActions())
+ " act=" + DragHandler.actionString(ev.getDropAction());
}
else if (e instanceof DropTargetDropEvent) {
DropTargetContext dtc = e.getDropTargetContext();
DropTarget dt = dtc.getDropTarget();
DropTargetDropEvent ev = (DropTargetDropEvent)e;
msg += ": src=" + DragHandler.actionString(ev.getSourceActions())
+ " tgt=" + DragHandler.actionString(dt.getDefaultActions())
+ " act=" + DragHandler.actionString(ev.getDropAction());
}