Skip to main content


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 HaoFriend
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: Fri Apr 19 20:08:36 GMT 2024

Powered by FUDForum. Page generated in 0.03501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top