The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
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.
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
>
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?
Changing Order
At 11:50 AM on Aug 7, 2008, Michael S. wrote:
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
3 replies so far (
Post your own)
Re: Changing Order
I guess the order is dictated by the order of objects returned thru youreditPart.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
I tried modifying that list, but it doesn't appear to do anything. Anyonehave any other ideas?
Re: Changing Order
So after a very frustrating day I managed to get some functions thatchange 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