|Programmatically invoking dnd [message #652490]
||Fri, 04 February 2011 09:45
| Innar Made
Registered: February 2011
What I want to achieve:
I want to dnd a shape into another shape. If the parent shape contains other shapes I want them to automatically be placed inside the shape I just dropped into the parent shape. These shapes should now belong to the dropped shape.
What I currently have:
I can dnd a shape into the parent shape and perform some necessary resizing. The other shapes that already were in the parent shape are now hidden behind the newly dropped shape.
What I have found:
Some interesting stuff I found that I could potentially use are:
1. somehow get the org.eclipse.graphiti.ui.internal.parts.ShapeEditPart instance and call showSourceFeedback(Request request) method that internally invokes a move shape feature
2. use Graphiti.getPeService().sendToFront(shape)
What would be the Graphiti way of achieving what I want to do?
Powered by FUDForum
. Page generated in 0.02315 seconds