Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Closing a Shell with ON_TOP style after an ALT->TAB
Closing a Shell with ON_TOP style after an ALT->TAB [message #454550] Sun, 24 April 2005 01:14 Go to next message
Ravi is currently offline RaviFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

I have a Shell wth Style ON_TOP and it contains some controls. I want to
dispose the shell when the user does an ALT->TAB or minimises the workbench.
I am able to achieve this by adding an IWindowListener and disposing the
shell in windowDeactivated(IWorkbenchWindow window) method. But, this method
also gets called when i click on some control within the shell, making my
shell disappear, which i don't want to.

Is there any other way to dispose the shell when the user does an ALT->TAB
or minimises the workbench without adding an IWindowListener?

What i really want is the behavior of the java content assist (F2 focus
window) in eclipse. Can anyone give me pointers on how the content Assist
window is disposed under the conditions mentioned above.

thanks,
-Ravi
Re: Closing a Shell with ON_TOP style after an ALT->TAB [message #454606 is a reply to message #454550] Mon, 25 April 2005 14:37 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You'll have to ask on eclipse.platform. We don't do anything special to
indicate how a shell was deactivated.

"Ravi" <rshankark@hotmail.com> wrote in message
news:d4es22$pnn$1@news.eclipse.org...
> Hi,
>
> I have a Shell wth Style ON_TOP and it contains some controls. I want to
> dispose the shell when the user does an ALT->TAB or minimises the
workbench.
> I am able to achieve this by adding an IWindowListener and disposing the
> shell in windowDeactivated(IWorkbenchWindow window) method. But, this
method
> also gets called when i click on some control within the shell, making my
> shell disappear, which i don't want to.
>
> Is there any other way to dispose the shell when the user does an ALT->TAB
> or minimises the workbench without adding an IWindowListener?
>
> What i really want is the behavior of the java content assist (F2 focus
> window) in eclipse. Can anyone give me pointers on how the content Assist
> window is disposed under the conditions mentioned above.
>
> thanks,
> -Ravi
>
>
Previous Topic:Extend FileFormat
Next Topic:ImageData storage in Image
Goto Forum:
  


Current Time: Mon Mar 08 10:08:26 GMT 2021

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

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

Back to the top