Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How can i implement Drag and Drop feature with in the diagram
How can i implement Drag and Drop feature with in the diagram [message #964029] Tue, 30 October 2012 03:49 Go to next message
Raghava Rao is currently offline Raghava Rao
Messages: 62
Registered: July 2009
Member
Hello All,

I want to implement Drag and drop feature within the diagram.
Basically i want to drag and drop one shape into another Shape.

I have looked into getDragAndDropFeatures() in FeatureProvider class.But it looks like this is supported only for connections.

Advance thanks for your reply.

Thanks,
Raghav
Re: How can i implement Drag and Drop feature with in the diagram [message #964298 is a reply to message #964029] Tue, 30 October 2012 08:09 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1524
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Raghav,

Graphiti handles this as a move, so you need to implement a move feature.
When the target passed into the move feature is the target shape you will
most probably want to adapt the parent of the moved element.

Michael
Previous Topic:Testing Graphiti editor
Next Topic:Problem with Platform Graphics Algorithm Text Flow
Goto Forum:
  


Current Time: Wed Apr 16 09:33:53 EDT 2014

Powered by FUDForum. Page generated in 0.03808 seconds