git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9912c3
)
JAL-1522 patch - try to pick best text dataflavor
author
Jim Procter
<jprocter@issues.jalview.org>
Wed, 25 May 2016 17:51:05 +0000
(18:51 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Wed, 25 May 2016 17:51:05 +0000
(18:51 +0100)
src/jalview/gui/AlignFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
7e7bdd3
..
0419b6f
100644
(file)
--- a/
src/jalview/gui/AlignFrame.java
+++ b/
src/jalview/gui/AlignFrame.java
@@
-5048,6
+5048,12
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
// This is used by Unix drag system
evt.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);
String data = (String) t.getTransferData(uriListFlavor);
+ if (data == null)
+ {
+ // try 'best' dataflavor
+ data = (String) t.getTransferData(DataFlavor
+ .selectBestTextFlavor(t.getTransferDataFlavors()));
+ }
files = new java.util.ArrayList(1);
for (java.util.StringTokenizer st = new java.util.StringTokenizer(
data, "\r\n"); st.hasMoreTokens();)