Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » The editor arrange the objects in sequence
The editor arrange the objects in sequence [message #141451] Mon, 05 July 2004 02:01 Go to next message
Eclipse UserFriend
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 #141839 is a reply to message #141451] Tue, 06 July 2004 23:49 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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 #141855 is a reply to message #141839] Wed, 07 July 2004 00:39 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
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.
> > >
>
>
Previous Topic:How to show selection when a figure is selected by mouse click
Next Topic:avoid overlapd in editor
Goto Forum:
  


Current Time: Fri Apr 26 18:36:17 GMT 2024

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

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

Back to the top