Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:37
Julien Richard-Foy is currently offline Julien Richard-FoyFriend
Messages: 3
Registered: May 2010
Junior Member
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: Thu Jun 20 10:18:00 GMT 2024

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

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

Back to the top