Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to drag and drop external models in my diagram?
How to drag and drop external models in my diagram? [message #543947] Thu, 01 July 2010 03:37
Eclipse UserFriend
In the ECore diagram editor you can see a Navigator view allowing to load external resources and even to drag and drop them in the diagram, as a shortcut.

I would like to get exactly the same behavior in my diagram editor. I copied the Navigator code in my project and am able to load resources in it, but I can't get the drag and drop working. I try to walk through the ecoretools.diagram code but that's not very easy because I'm not so familiar with the SWT + Eclipse stack API...

I copied the ECoreDiagramEditor.initializeGraphicalViewer() code in my project but it seems that the command created by the DropTargetListener always return false when calling its canExecute() operation. I don't know where I should prospect... Any clue?

Regards,
Julien
Previous Topic:Send Event or callback from GMF Tool
Next Topic:Click on a label to edit a property
Goto Forum:
  


Current Time: Fri Jul 04 10:28:14 EDT 2025

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

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

Back to the top