Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Resizing children if parent gets resize
Resizing children if parent gets resize [message #230606] Wed, 14 February 2007 07:03 Go to next message
Eclipse UserFriend
Originally posted by: sushant.sirsikar.gmail.com

Hello everyone,
My view contains one parent and one child figure. There is separate
model exists for parent and child. Child sits at the center of the
parent. I have installed ResizableEditPolicy into parent. If i change
the size of parent by dragging it, location of the child is automatically
adjusted to center. But this new position of the child is not reflected in
the model. This new position only reflects in the view.
Can anyone please help me out on this issue?
Thanks in advance.
Re: Resizing children if parent gets resize [message #230671 is a reply to message #230606] Wed, 14 February 2007 22:38 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

What kind of a Draw2d layout does the parent figure have?

You can either have the command that resizes the parent also resize the
child in the model. If the child's size can't be determined, you can have
your child editpart listen to its figure (FigureListener), and whenever the
figure's moved, the child editpart can update the model with the figure's
new bounds.


"Sushant Sirsikar" <sushant.sirsikar@gmail.com> wrote in message
news:571074d9561f46b39f04ced883f7587b$1@www.eclipse.org...
> Hello everyone,
> My view contains one parent and one child figure. There is separate
> model exists for parent and child. Child sits at the center of the
> parent. I have installed ResizableEditPolicy into parent. If i change
> the size of parent by dragging it, location of the child is automatically
> adjusted to center. But this new position of the child is not reflected in
> the model. This new position only reflects in the view.
> Can anyone please help me out on this issue?
> Thanks in advance.
>
Previous Topic:setClip(path) error on overview
Next Topic:zoomFit and ArrangeAll - problem when together (gmf post from 2007.02.13)
Goto Forum:
  


Current Time: Fri Apr 26 22:21:02 GMT 2024

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

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

Back to the top