|
|
|
@ -45,19 +45,20 @@ public class DragScene extends AbstractGuideScene{
|
|
|
|
|
new DragAndDropDragGestureListener(target, DnDConstants.ACTION_COPY_OR_MOVE){ |
|
|
|
|
@Override |
|
|
|
|
public void dragDropEnd(DragSourceDropEvent dsde) { |
|
|
|
|
complete(); |
|
|
|
|
if (dsde.getDropSuccess()) { |
|
|
|
|
complete(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} else if (dragType == DragType.TO) { |
|
|
|
|
target.setDropTarget(new DropTarget()); |
|
|
|
|
target.setDropTarget(new DropSceneTarget()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private class DropSceneTarget extends DropTarget { |
|
|
|
|
@Override |
|
|
|
|
public synchronized void drop(DropTargetDropEvent dtde) { |
|
|
|
|
super.drop(dtde); |
|
|
|
|
complete(); |
|
|
|
|
dtde.dropComplete(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|