Skip to main content



      Home
Home » Modeling » Graphiti » Drag and Drop doesn't work from ResourceNavigator
Drag and Drop doesn't work from ResourceNavigator [message #1790091] Mon, 04 June 2018 12:09 Go to next message
Eclipse UserFriend
Whenever I drop a file from ResourceNavigator onto Graphiti Editor, the addFeature() doesn't get called and and editor associated from dropped file is launched. In fact, non of the classes in the Graphiti class chain are called. However, if I drop from Project Explorer for example, addFeature() is being called. What could be the issue? I know that DND works because functionality is successful with plain GEF editor.
Re: Drag and Drop doesn't work from ResourceNavigator [message #1790151 is a reply to message #1790091] Wed, 06 June 2018 02:44 Go to previous messageGo to next message
Eclipse UserFriend
Alex,

I guess for this you need to provide your own drop target listener and add that to the editor. In DiagramBehavior method createBusinessObjectDropTargetListeners() the default implementation adds a drop target listener for the objects from the project explorer only. I haven't done that but adding your own drop target listener there should enable that.

THT,
Michael
Re: Drag and Drop doesn't work from ResourceNavigator [message #1790261 is a reply to message #1790151] Thu, 07 June 2018 11:52 Go to previous message
Eclipse UserFriend
Thank you Michael.
Previous Topic:Remove Zoom Levels
Next Topic:Performances issues
Goto Forum:
  


Current Time: Wed May 14 21:44:50 EDT 2025

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

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

Back to the top