Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drag/drop java file into GEF
Drag/drop java file into GEF [message #242151] Wed, 02 April 2008 23:19
Ling Hao is currently offline Ling Hao
Messages: 7
Registered: July 2009
Junior Member
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
same thing.

Thanks in advance.
Previous Topic:Add ImageFigure to custom layer
Next Topic:problem with mouse location inside a DragEditTracker
Goto Forum:
  


Current Time: Wed Sep 03 07:17:04 GMT 2014

Powered by FUDForum. Page generated in 0.01708 seconds