Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Changing Order
Changing Order [message #244793] Thu, 07 August 2008 15:50 Go to next message
Michael Swearingen is currently offline Michael SwearingenFriend
Messages: 26
Registered: July 2009
Junior Member
Hello All,

When multiple shapes are drawn (my project is similar to the shapes
editor) the shapes that are drawn last show up on the top of the shapes
that are drawn first. Is there an easy way to adjust the order of the
shapes. So if I change my mind and want to put a older shape on top of a
new shape I don't have to delete them and create new ones.

Thanks
MS
Re: Changing Order [message #244808 is a reply to message #244793] Thu, 07 August 2008 16:51 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
I guess the order is dictated by the order of objects returned thru your
editPart.getModelChildren() method. Try altering it


- Prakash

www.eclipse-tips.com


Michael S. wrote:
> Hello All,
>
> When multiple shapes are drawn (my project is similar to the shapes
> editor) the shapes that are drawn last show up on the top of the shapes
> that are drawn first. Is there an easy way to adjust the order of the
> shapes. So if I change my mind and want to put a older shape on top of
> a new shape I don't have to delete them and create new ones.
>
> Thanks
> MS
>
Re: Changing Order [message #244818 is a reply to message #244808] Thu, 07 August 2008 20:07 Go to previous messageGo to next message
Michael Swearingen is currently offline Michael SwearingenFriend
Messages: 26
Registered: July 2009
Junior Member
I tried modifying that list, but it doesn't appear to do anything. Anyone
have any other ideas?
Re: Changing Order [message #244828 is a reply to message #244793] Fri, 08 August 2008 16:17 Go to previous message
Michael Swearingen is currently offline Michael SwearingenFriend
Messages: 26
Registered: July 2009
Junior Member
So after a very frustrating day I managed to get some functions that
change the order of my shapes working. I had to get a copy of the
children, modify the copy, delete the original, and replace the children
with the copy. Anyway my question now is does anyone know a way
(preferably an easy one) to add calls to my order functions in the right
click menu for a shape?

Thanks,
MS
Previous Topic:scroll bar doesn't want to go away
Next Topic:Background image in rootEditPart
Goto Forum:
  


Current Time: Thu Dec 18 16:38:36 GMT 2014

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

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