Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

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!
Replies: 3 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Changing Order

At 11:50 AM on Aug 7, 2008, 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

  Click to reply to this thread Reply
1. At 12:51 PM on Aug 7, 2008, Prakash Javalobby Regulars wrote:

Re: Changing Order

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
>
Eclipse Tips Eclipse Search
  Click to reply to this thread Reply
2. At 4:07 PM on Aug 7, 2008, Michael S. wrote:

Re: Changing Order

I tried modifying that list, but it doesn't appear to do anything. Anyone
have any other ideas?

  Click to reply to this thread Reply
3. At 12:17 PM on Aug 8, 2008, Michael S. wrote:

Re: Changing Order

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


thread.rss_message