[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Drag and Drop within the diagram editor

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.