Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drag and Drop within the diagram editor
Drag and Drop within the diagram editor [message #234087] Thu, 18 June 2009 12:14 Go to next message
Lavanya K C is currently offline Lavanya K CFriend
Messages: 23
Registered: July 2009
Junior Member
Hi

I want to drag a diagram node(move)and and drop the same on a connection
on my GMF diagram editor. This should rearrange my nodes and connection.I
am using a fixed custom layout.

I added a DragDropEditPolicy on the node and overrided getDropCommand to
customize the drop behaviour. But this does not work.

Do I have to do something in XXXBaseItemSemanticEditPolicy#getMoveCommand
as this returns 'null' presently.

Thanks for any help

Lavanya.
Re: Drag and Drop within the diagram editor [message #234371 is a reply to message #234087] Mon, 22 June 2009 04:57 Go to previous message
Lavanya K C is currently offline Lavanya K CFriend
Messages: 23
Registered: July 2009
Junior Member
I am still having problems getting this working. Can someone suggest me
what exactly I will have to do to override the move behavior in my GMF
generated editor?

Thanks for any help,
Lavanya.

Lavanya K C wrote:

> Hi

> I want to drag a diagram node(move)and and drop the same on a connection
> on my GMF diagram editor. This should rearrange my nodes and connection.I
> am using a fixed custom layout.

> I added a DragDropEditPolicy on the node and overrided getDropCommand to
> customize the drop behaviour. But this does not work.

> Do I have to do something in XXXBaseItemSemanticEditPolicy#getMoveCommand
> as this returns 'null' presently.

> Thanks for any help

> Lavanya.
Previous Topic:Hint for dynamic Model
Next Topic:Add sub-nodes programmatically after creating node (GMF 2.2)
Goto Forum:
  


Current Time: Wed Apr 24 17:17:06 GMT 2024

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

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

Back to the top