Drag disables move functionality on diagram [message #487364] |
Tue, 22 September 2009 21:23 |
Artur Kronenberg Messages: 159 Registered: August 2009 |
Senior Member |
|
|
Hi,
I would like to be able to drag nodes from my diagram to my emf editor and drop them there.
So far, what I found out is, that I have to add a dragSourceListener to my diagram.
In my XXXDiagramEditor in the configureGraphicalViewer() method I added a TransferDragSourceListener and implemented it.
I was able to drag from the diagram to the editor and get the object in my editor.
The problem now is, that I cannot move nodes around anymore because the diagram assumes that everything dragged is dragged and not moved (makes sence I guess). This problem is annoying me for months and I can still not drag and drop from my diagram or on my diagram.
Is there something I forgot to do?
Best regards,
Artur
|
|
|
Powered by
FUDForum. Page generated in 0.02619 seconds