Moving children with parent [message #197813] |
Wed, 05 October 2005 18:14 |
Eclipse User |
|
|
|
Originally posted by: natarajat.gmail.com
I am a newbie to GEF development. I am developing a GEF editor. I have a
edit part very similar to LogicFlowContainerEditPart (from logic example)
except that I am using a LogicXYLayoutEditPolicy instead of
LogicFlowEditPolicy as used in the logic example. Now the problem is, when
I move the flow container in the editor, the children do not move. I am
not sure what I am supposed to do to make the children move with the
parent.
Thanks
Raj
|
|
|
Re: Moving children with parent [message #197988 is a reply to message #197813] |
Thu, 06 October 2005 19:30 |
Eclipse User |
|
|
|
Originally posted by: natarajat.gmail.com
I could not figure out how the children of LogicFlowContainerEditPart move
along when the LogicFlowContainerEditPart is moved in the Logic example. I
added a label as a child (in the editor) and its "location" attribute in
the model never seems to change but the figure always moves around with
the parent. In fact the label location is always (0,0).
In my case, I modified the SetConstraintCommand to apply the move delta to
all the children as well. Now it works fine. I am not sure if this is the
right way. Any comments?
Thanks
Raj wrote:
> I am a newbie to GEF development. I am developing a GEF editor. I have a
> edit part very similar to LogicFlowContainerEditPart (from logic example)
> except that I am using a LogicXYLayoutEditPolicy instead of
> LogicFlowEditPolicy as used in the logic example. Now the problem is, when
> I move the flow container in the editor, the children do not move. I am
> not sure what I am supposed to do to make the children move with the
> parent.
> Thanks
> Raj
|
|
|
Re: Moving children with parent [message #198193 is a reply to message #197988] |
Fri, 07 October 2005 21:42 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Add something to a circuit (CircuitEditPart) and study that, not the
FlowContainer.
"Raj" <natarajat@gmail.com> wrote in message
news:3eca8458906b60808bdfa0b2e37961df$1@www.eclipse.org...
> I could not figure out how the children of LogicFlowContainerEditPart move
> along when the LogicFlowContainerEditPart is moved in the Logic example. I
> added a label as a child (in the editor) and its "location" attribute in
> the model never seems to change but the figure always moves around with
> the parent. In fact the label location is always (0,0).
>
> In my case, I modified the SetConstraintCommand to apply the move delta to
> all the children as well. Now it works fine. I am not sure if this is the
> right way. Any comments?
>
> Thanks
>
>
> Raj wrote:
>
> > I am a newbie to GEF development. I am developing a GEF editor. I have a
> > edit part very similar to LogicFlowContainerEditPart (from logic
example)
> > except that I am using a LogicXYLayoutEditPolicy instead of
> > LogicFlowEditPolicy as used in the logic example. Now the problem is,
when
> > I move the flow container in the editor, the children do not move. I am
> > not sure what I am supposed to do to make the children move with the
> > parent.
>
> > Thanks
>
> > Raj
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02721 seconds