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 07:49 Go to next message
Raghava Rao is currently offline Raghava RaoFriend
Messages: 64
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 12:09 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1637
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: Fri Nov 28 23:21:56 GMT 2014

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

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