Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Move children between parents
Move children between parents [message #241205] Sat, 02 February 2008 23:14 Go to next message
Nacef is currently offline NacefFriend
Messages: 29
Registered: July 2009
Junior Member
Hi all,

I am creating a kind of editor and I want to be able to move some children
objects between their parents and keep this changes. I took a look at the
Logic example which does the same thing I want to circuit parts but I
didn't get where is the code responsible of changing the parent of the
moved child.

If some one can explain me in few words the steps that need to be
performed to get this result it would be really great.

Thanks
Re: Move children between parents [message #241210 is a reply to message #241205] Mon, 04 February 2008 06:33 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hello Nacef,
The layout policy installed on the parent is involved in the
movement of child editParts. Since you are trying to move editParts across
two parents/containers, you need to provide an implementation for the
createAddCommand() in the layout policy, that returns a command which is
responsible for changing the parent of the moved child.
Hope this helps.


Nacef wrote:

> Hi all,

> I am creating a kind of editor and I want to be able to move some children
> objects between their parents and keep this changes. I took a look at the
> Logic example which does the same thing I want to circuit parts but I
> didn't get where is the code responsible of changing the parent of the
> moved child.

> If some one can explain me in few words the steps that need to be
> performed to get this result it would be really great.

> Thanks


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:In draw2d, how do you align text about a point?
Next Topic:Thumbnail
Goto Forum:
  


Current Time: Fri Apr 19 14:40:08 GMT 2024

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

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

Back to the top