|
Re: Is there a way to get Shells by Z-Order? [message #1702348 is a reply to message #1702308] |
Tue, 21 July 2015 16:17 |
Eclipse User |
|
|
|
I don't see a portable way of accomplishing this. You can determine what is the top element (Display#getActiveShell()). You might be lucky and find Display#getShells() returns the shells in Z-order, but it's not listed as a feature on its doc.
What are you trying to accomplish?
Brian.
|
|
|
Re: Is there a way to get Shells by Z-Order? [message #1702668 is a reply to message #1702348] |
Fri, 24 July 2015 00:15 |
Eclipse User |
|
|
|
"Brian de Alwis" <forums-noreply@xxxxxxxx> 写入消息
news:molrbj$nf0$1@xxxxxxxxe.org...
> I don't see a portable way of accomplishing this. You can determine what
> is the top element (Display#getActiveShell()). You might be lucky and
> find Display#getShells() returns the shells in Z-order, but it's not
> listed as a feature on its doc.
>
> What are you trying to accomplish?
>
Well, since DND does not support dragging position (for drawing a rectangle
just like eclipse does), I implement myDND.
When dragging, I try to count which shell and which composite (with
ImyDropTarget interface) is dragover by mouse.
If shells are not covered to each other, I can get right shell & right
composite,
but if any shell(s) are covered to other(s), I cannot get right shell (and
neither right composite) sometimes.
That's why I need to get shells by Z-order.
Frank
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04298 seconds