Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Who to change Z-order of EditParts?
Who to change Z-order of EditParts? [message #220040] Tue, 25 July 2006 12:58 Go to next message
Sergey Gomanyuk is currently offline Sergey GomanyukFriend
Messages: 46
Registered: July 2009
Member
I'd like to change Z-order of selected EditPart and show it on top of others
EditParts, but do not know how to do it ;( need help.

Sergey Gomanyuk
Re: Who to change Z-order of EditParts? [message #220112 is a reply to message #220040] Tue, 25 July 2006 16:43 Go to previous messageGo to next message
Sebu Thomas is currently offline Sebu ThomasFriend
Messages: 12
Registered: July 2009
Junior Member
This question has been asked often in the newsgroup. To repeat, z-order
is determined by the order in which the child models of the root
EditPart are processed. So what you need to do is, upon selection, find
the model instance of the selected EditPart and make sure that it comes
first in getModelChildren() call on the parent (I assume the root) EditPart.

For more informative discussions, search the newsgroup with "z-order" or
"bring to front"

Sebu.

Sergey Gomanyuk wrote:
> I'd like to change Z-order of selected EditPart and show it on top of others
> EditParts, but do not know how to do it ;( need help.
>
> Sergey Gomanyuk
>
>
Re: How to change Z-order of EditParts? [message #220265 is a reply to message #220112] Thu, 27 July 2006 13:58 Go to previous messageGo to next message
Sergey Gomanyuk is currently offline Sergey GomanyukFriend
Messages: 46
Registered: July 2009
Member
Thank yo? for your answer!

> EditPart are processed. So what you need to do is, upon selection, find
> the model instance of the selected EditPart and make sure that it comes
> first in getModelChildren() call on the parent (I assume the root)
> EditPart.
>

It's true only for children of root EditPart, but ConnectionEditPart z-order
is not clear for me. I have following example: editpart1 is over editpart2,
but connections of editpart2 is over connections of editpart1. How it can
be?

>
> Sebu.
>
> Sergey Gomanyuk wrote:
>> I'd like to change Z-order of selected EditPart and show it on top of
>> others EditParts, but do not know how to do it ;( need help.
>>
>> Sergey Gomanyuk
Re: How to change Z-order of EditParts? [message #220330 is a reply to message #220265] Sat, 29 July 2006 10:07 Go to previous message
Eclipse UserFriend
Originally posted by: cricard.businessobjects.com

That's because connections are stored in another layer (e.g. another group
of edit parts), with its own Z-ordering.

"Sergey Gomanyuk" <sergg@ispras.ru> wrote in message
news:eaagqf$7el$1@utils.eclipse.org...
> Thank yo? for your answer!
>
>> EditPart are processed. So what you need to do is, upon selection, find
>> the model instance of the selected EditPart and make sure that it comes
>> first in getModelChildren() call on the parent (I assume the root)
>> EditPart.
>>
>
> It's true only for children of root EditPart, but ConnectionEditPart
> z-order is not clear for me. I have following example: editpart1 is over
> editpart2, but connections of editpart2 is over connections of editpart1.
> How it can be?
>
>>
>> Sebu.
>>
>> Sergey Gomanyuk wrote:
>>> I'd like to change Z-order of selected EditPart and show it on top of
>>> others EditParts, but do not know how to do it ;( need help.
>>>
>>> Sergey Gomanyuk
>
>
Previous Topic:How can I get current MouseLocation in RootEditPart?
Next Topic:What's new in 3.2?
Goto Forum:
  


Current Time: Thu Apr 25 21:31:59 GMT 2024

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

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

Back to the top