|Drag/drop java file into GEF [message #242151]
||Wed, 02 April 2008 23:19
| Ling Hao
Registered: July 2009
I would like to drag/drop a java file from a java project into GEF |
Graphical Editor. ResourceTransfer works, except I need to check for the
IResource during dragEnter/dragOver to allow the drop only if the
DropTargetEvent.data contains one IResource AND that IResource is an IFile
with "java" extension.
However it appears DropTargetEvent.data is only available during drop()
but not dragEnter()/dragOver().
Any suggestions on how I can find the IResource during
dragEnter()/dragOver()? Or is there an alternative way to accomplish the
Thanks in advance.
Powered by FUDForum
. Page generated in 0.03286 seconds