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:
c89daa8
)
JAL-1459 ensure we notify the drop handler that we've dealt with the
author
jprocter
<<jprocter@dundee.ac.uk>
Thu, 20 Mar 2014 15:53:03 +0000
(15:53 +0000)
committer
jprocter
<<jprocter@dundee.ac.uk>
Thu, 20 Mar 2014 15:53:03 +0000
(15:53 +0000)
drop event
src/jalview/gui/Desktop.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Desktop.java
b/src/jalview/gui/Desktop.java
index
f4d1885
..
fe99469
100644
(file)
--- a/
src/jalview/gui/Desktop.java
+++ b/
src/jalview/gui/Desktop.java
@@
-806,6
+806,7
@@
public class Desktop extends jalview.jbgui.GDesktop implements
*/
public void drop(DropTargetDropEvent evt)
{
+ boolean success=true;
Transferable t = evt.getTransferable();
java.util.List files = null;
java.util.List protocols = null;
@@
-854,6
+855,7
@@
public class Desktop extends jalview.jbgui.GDesktop implements
}
} catch (Exception e)
{
+ success=false;
}
if (files != null)
@@
-882,8
+884,10
@@
public class Desktop extends jalview.jbgui.GDesktop implements
}
} catch (Exception ex)
{
+ success=false;
}
}
+ evt.dropComplete(success); // need this to ensure input focus is properly transfered to any new windows created
}
/**