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 contains one IResource AND that IResource is an IFile
with "java" extension.

However it appears 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 Jun 22 00:15:11 GMT 2018

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

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

Back to the top