|Drag & Drop from TreeView to GMF Editor [message #1219029]
||Fri, 29 November 2013 15:11
| Greg Dart
Registered: September 2013
I have researched this extensively in forums and web search, but just got more and more confused. Please could someone set out the correct approach? My impression is that there is an "old wrong" way to do this and a new but largely undocumented way.
I have a Treeviewer in a ViewPart. I am quite comfortable creating DND between normal eclipse plugins, e.g from TreeViewer to TableViewer.
I want to enable the GMF diagram so that when an appropriate object from the Treeviewer is dropped on the correct type of element, a command is fired that I can intercept and handle with whatever custom code.
I understand from research that I should implement an extension point? Perhaps: org.eclipse.gmf.runtime.common.ui.services.dnd.dragDropListenerProviders?
If so, what are "TransferID"?
Do I need to use "DiagramDropTargetListener"? If so to do what?
Can anyone please provide an example of how to do this?
I would like as much as possible to avoid modifying the generated code.
Powered by FUDForum
. Page generated in 0.01691 seconds