OK, an interesting discovery...
I changed my shell from being a "SWT.ON_TOP" style to a "SWT.TOOL"
style, and it seems to behave exactly like I want. I still have one
small glitch - but I think it is due to how I destroy and re-create new
shells - display.getActiveShell() returns the shell I am destroying, I
think. That may explain the seemingly random behaviour I am seeing.
Thanks for the hint, Manu. This has really been bugging me!
M.
On Fri, 14 Mar 2008 09:53:19 -0400, Mark Melvin <mark_melvin@xxxxxxxx>
wrote:
Hi Manuel,
Thanks for the reply. I did try creating it using
display.getActiveShell() as the parent, but got some interesting
behaviour:
- My top level shell is hidden if I iconify (minimize) the Eclipse
instance (excellent!)
- If I click another window to the foreground, my shell is still on top
of everything (not so good)
o But now (and only sometimes it seems) if I click the Eclipse item
in the Windows taskbar, it will not come back to the front. I have to
Alt-Tab to it, or minimize everything in front of it (bad)
So, I'm not so sure what is the better behaviour. I guess this is
slightly better than before. But I know I tried this yesterday when I
was fighting with it and it didn't work at all. Perhaps it also
depends on what you get back as being the active shell at the time? I
dunno...
Mark.
On Fri, 14 Mar 2008 07:40:36 -0400, Manuel Selva <manuel.selva@xxxxxx>
wrote:
Hi Mark,
Maybe you should create your shell using the Eclipse shell instead of
using the display... I suppose creating the shell this way will hide
it when the parent shell is hidden ...
Please let me know if it helps
Regards
Manu
http://manuelselva.wordpress.com