TreeItem and Drag'n Drop
I've developing my fist SWT App which is an eclipse plugin. I created a TabFolder, with several TabItems etc pp. Works fine and good but - yes :( -I'm facing a problem, that I'm not able to get rid of it.
My TreeItem has a dragListener on them, my stored data on the items is a map, to cut this down: What I want? - I just want to set the TransferDataType for the listener. Atm it seems to me that all dragged data is automaticlly mapped to the first supported Transfer type. If this one is TextTransfer, then the DragSourceEvent will be of type TextTransfer for other plugins, which I don't have under control at the workbench.
Is there anyway to set the TransferData by content? Example:
TreeItem is map, map has key "urls" so my TransferDataType should be FileTransfer, map hasn't key "urls" so my TransferDataType should be TextTranser.
I hope I could show up my problem, thanks a lot for reading
ok, no one has a clue, damnit :( :confused: