Skip to main content



      Home
Home » Modeling » Graphiti » Programmatically invoking dnd
Programmatically invoking dnd [message #652490] Fri, 04 February 2011 04:45
Eclipse UserFriend
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: Sat Jul 05 04:11:22 EDT 2025

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

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

Back to the top