The editor arrange the objects in sequence [message #141451] |
Mon, 05 July 2004 02:01 |
Eclipse User |
|
|
|
Originally posted by: penzhan8451.sina.com
hello,
I want to put the new object from the palette into the GEF editor in
sequence automatically (when a new object was added, the editor can
refresh the children's location and make them orderly).
How can i do it?
Thanks & best regards.
|
|
|
|
Re: The editor arrange the objects in sequence [message #141855 is a reply to message #141839] |
Wed, 07 July 2004 00:39 |
Eclipse User |
|
|
|
Originally posted by: penzhan8451.sina.com
Thanks for your answer !
When I drop a part, the part may be overlaped with another part. I will
not this happened .Instead of that, the parts could be a arranged
orderly automatically by parent EditPart.
Thanks in advance !
Pratik Shah wrote:
> When you drop the part, the ancestor EditParts will be refreshed, and their
> figures revalidated. So, if you just set the proper layout (which
> determines the children's order and location) on your base EditPart (and
> possibly other container EditParts), this should happen automatically.
> "Peng Li Zhan" <penzhan8451@sina.com> wrote in message
> news:ccacp5$kot$1@eclipse.org...
> >
> > hello,
> >
> > I want to put the new object from the palette into the GEF editor in
> >
> > sequence automatically (when a new object was added, the editor can
> >
> > refresh the children's location and make them orderly).
> >
> > How can i do it?
> >
> >
> > Thanks & best regards.
> >
|
|
|
Re: The editor arrange the objects in sequence [message #142085 is a reply to message #141855] |
Wed, 07 July 2004 15:59 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
I am not sure what your question is here. But if you are asking about a
layout that can automatically prevent overlap, we don't have one. You'll
have to write your own.
"Peng Li Zhan" <penzhan8451@sina.com> wrote in message
news:ccfgoq$2rc$1@eclipse.org...
> Thanks for your answer !
> When I drop a part, the part may be overlaped with another part. I will
> not this happened .Instead of that, the parts could be a arranged
> orderly automatically by parent EditPart.
> Thanks in advance !
>
> Pratik Shah wrote:
>
> > When you drop the part, the ancestor EditParts will be refreshed, and
their
> > figures revalidated. So, if you just set the proper layout (which
> > determines the children's order and location) on your base EditPart (and
> > possibly other container EditParts), this should happen automatically.
>
> > "Peng Li Zhan" <penzhan8451@sina.com> wrote in message
> > news:ccacp5$kot$1@eclipse.org...
> > >
> > > hello,
> > >
> > > I want to put the new object from the palette into the GEF editor
in
> > >
> > > sequence automatically (when a new object was added, the editor can
> > >
> > > refresh the children's location and make them orderly).
> > >
> > > How can i do it?
> > >
> > >
> > > Thanks & best regards.
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03166 seconds