Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Programmatically invoking dnd
Programmatically invoking dnd [message #652490] Fri, 04 February 2011 09:45
Innar Made is currently offline Innar MadeFriend
Messages: 1
Registered: February 2011
Junior Member
Hello,

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)

My question:
What would be the Graphiti way of achieving what I want to do?

Thanks,
Innar
Previous Topic:Connect a connection to another one?
Next Topic:Permanently Selected Graphics Algorithms
Goto Forum:
  


Current Time: Fri Nov 21 17:56:59 GMT 2014

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

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