Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to test whether the shell is in focus ?
how to test whether the shell is in focus ? [message #454609] Mon, 25 April 2005 20:58 Go to next message
bbskill is currently offline bbskillFriend
Messages: 26
Registered: July 2009
Junior Member
Thank you for your answers!!
Re: how to test whether the shell is in focus ? [message #454613 is a reply to message #454609] Mon, 25 April 2005 21:12 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
Shell has an "isFocusControl()" method.

If you want to find out which shell is currently active in your app, you can
do:

if (Display.getDefault().getActiveShell().equals(shellToTestAga inst)) {
// yay
}
else {
// nay
}

Or such.

Emil

"bbskill" <bbkills@tom.com> wrote in message
news:d4jdhi$3ff$1@news.eclipse.org...
> Thank you for your answers!!
>
Previous Topic:Visual Editor 1.1M1 released
Next Topic:Tree and Table
Goto Forum:
  


Current Time: Tue Apr 23 17:46:56 GMT 2024

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

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

Back to the top