How to drag and drop external models in my diagram? [message #543947] |
Thu, 01 July 2010 03:37 |
Eclipse User |
|
|
|
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.17117 seconds