From: kiramt Date: Tue, 11 Oct 2016 11:01:23 +0000 (+0100) Subject: JAL-1552 added acceptDrop call before getTransferable to avoid error X-Git-Tag: Release_2_10_0b1~3^2~15^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-1552dragndropurl;p=jalview.git JAL-1552 added acceptDrop call before getTransferable to avoid error with Java native dnd --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index f99af34..1d76f27 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -941,6 +941,9 @@ public class Desktop extends jalview.jbgui.GDesktop implements public void drop(DropTargetDropEvent evt) { boolean success = true; + // JAL-1552 - acceptDrop required before getTransferable call for + // Java's Transferable for native dnd + evt.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); Transferable t = evt.getTransferable(); java.util.List files = new ArrayList(); java.util.List protocols = new ArrayList();