Skip to main content



      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] Sat, 23 April 2005 21:14 Go to next message
Eclipse UserFriend
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 10:37 Go to previous message
Eclipse UserFriend
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: Sun Nov 09 18:27:56 EST 2025

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

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

Back to the top