Pass the drag source along when informing the drop target of a completed

drop.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@820 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-08-21 17:54:10 +00:00
parent 6823210bd8
commit 628addc144
2 changed files with 4 additions and 4 deletions
@@ -1,5 +1,5 @@
// //
// $Id: DnDManager.java,v 1.4 2002/08/21 00:15:23 ray Exp $ // $Id: DnDManager.java,v 1.5 2002/08/21 17:54:10 mdb Exp $
package com.samskivert.swing.dnd; package com.samskivert.swing.dnd;
@@ -189,7 +189,7 @@ public class DnDManager
// since the release comes with a component of the source, // since the release comes with a component of the source,
// we use the last enter... // we use the last enter...
if (_lastTarget != null) { if (_lastTarget != null) {
_lastTarget.dropCompleted(_data[0]); _lastTarget.dropCompleted(_source, _data[0]);
_source.dragCompleted(_lastTarget); _source.dragCompleted(_lastTarget);
} }
reset(); reset();
@@ -1,5 +1,5 @@
// //
// $Id: DropTarget.java,v 1.3 2002/08/20 22:47:49 ray Exp $ // $Id: DropTarget.java,v 1.4 2002/08/21 17:54:10 mdb Exp $
package com.samskivert.swing.dnd; package com.samskivert.swing.dnd;
@@ -28,5 +28,5 @@ public interface DropTarget
/** /**
* Called when the drop is actually executed. * Called when the drop is actually executed.
*/ */
public void dropCompleted (Object data); public void dropCompleted (DragSource source, Object data);
} }