Skip to main content



      Home
Home » Eclipse Projects » GEF » Simple layout policy question
Simple layout policy question [message #671273] Tue, 17 May 2011 06:51 Go to next message
Eclipse UserFriend
Hi, I've a simple? layout policy question.

When I try to move a child on top of another child the movement is blocked. No call to createChangeConstraint() is done and the icon is a stop sign.

I need to be able to drop on top of the child and copy the constraints to the other child.

Can someone enlighten me on where to look for this policy?

My models are very simple with one container and two different childs that I can create and move around. So everything works, except moving a child on top of another.

Re: Simple layout policy question [message #671530 is a reply to message #671273] Wed, 18 May 2011 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Since no one answer(but lot's of reads), can I assume it's a RTFM question? Or is this not possible with GEF?! (or hard to accomplish)
Re: Simple layout policy question [message #671576 is a reply to message #671530] Wed, 18 May 2011 07:44 Go to previous message
Eclipse UserFriend
A more general follow up question: In my EditPart I try to use
getTargetEditPart(request)
to get the EditPart where I want to drop my child. But this always return null or itself?!
What is the flow for all the methods in EditPart and when/where does the TargetEditPart been registered?

I try to get the EditPart and fill the ExtendedData with the EditPart so that the command can find out the target EditPart, but with no luck?

[Updated on: Wed, 18 May 2011 07:45] by Moderator

Previous Topic:Proper handling of model references
Next Topic:One-click drag of the endpoint of a connector
Goto Forum:
  


Current Time: Wed Jul 23 15:21:09 EDT 2025

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

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

Back to the top