How to drag and drop external models in my diagram? [message #543947] |
Thu, 01 July 2010 07:37 |
Julien Richard-Foy![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=julien.rf%40gmail.com) 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
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds