Broken drag-and-drop in 0.3.6

13 views
Skip to first unread message

Mora Fermi

unread,
Apr 23, 2014, 1:47:18 AM4/23/14
to t3-dis...@googlegroups.com
Drag-and-drop for images appears broken.

Steps to reproduce:

- Start Tiamat,
- Drag any image from outside to the map.

Stack trace:

2014-04-23 07:43:56,503 [client.TabletopTool:314] ERROR - TransferableHelper.error.unrecognizedAsset
java.lang.ClassCastException: java.io.File cannot be cast to java.net.URL
at com.t3.client.TransferableHelper.handleURLList(TransferableHelper.java:376)
at com.t3.client.TransferableHelper.getAsset(TransferableHelper.java:228)
at com.t3.client.TransferableHelper.importData(TransferableHelper.java:556)
at javax.swing.TransferHandler.importData(Unknown Source)
at javax.swing.TransferHandler$DropHandler.drop(Unknown Source)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at javax.swing.TransferHandler$SwingDropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.t3.client.swing.T3EventQueue.dispatchEvent(T3EventQueue.java:35)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2014-04-23 07:43:57,977 [client.TabletopTool:348] WARN - TransferableHelper.warning.badObject

Message has been deleted

Virenerus

unread,
Apr 28, 2014, 2:14:29 AM4/28/14
to t3-dis...@googlegroups.com
the current dnd is only there for the GUI itself to work. But you are totally right that this should at least not return an error. Also if you drop stuff from the internet or local files it should also be able to work with that.
Because this is more work than a quick fix I put this on the TODO list.
Reply all
Reply to author
Forward
0 new messages