Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drag disables move functionality on diagram
Drag disables move functionality on diagram [message #487364] Tue, 22 September 2009 21:23
Artur Kronenberg is currently offline Artur KronenbergFriend
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
Previous Topic:GMF Diagram Validation
Next Topic:Get EditPart under mouse location
Goto Forum:
  


Current Time: Mon Apr 15 21:56:30 GMT 2024

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

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

Back to the top