Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Display.getActiveShell()
Display.getActiveShell() [message #464638] Fri, 25 November 2005 16:20 Go to next message
Lokesh Shah is currently offline Lokesh ShahFriend
Messages: 19
Registered: July 2009
Junior Member
Can someone explain what the Display.getActiveShell() method returns?
The javadoc says:
Returns the currently active Shell, or null if no shell belonging to the
currently running application is active.

What's confusing is the "currently running application" part.
So if I have a model dialog open, will this method return th e dialog
shell or my main window's shell?
What happens in case of a non-modal dialog?

Regards,
Lokesh
Re: Display.getActiveShell() [message #464645 is a reply to message #464638] Fri, 25 November 2005 21:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mwilli.iastate.edu

Lokesh Shah wrote:
> Can someone explain what the Display.getActiveShell() method returns?
> The javadoc says:
> Returns the currently active Shell, or null if no shell belonging to the
> currently running application is active.
>
> What's confusing is the "currently running application" part.
> So if I have a model dialog open, will this method return th e dialog
> shell or my main window's shell?
> What happens in case of a non-modal dialog?
>
> Regards,
> Lokesh
>
>
This returns the currently active shell for the program that you are
calling it from. If you only have one shell for your application, it
will return that shell. But if you have multiple shells, it will be the
one that is currently "active" or on top.
Re: Display.getActiveShell() [message #464647 is a reply to message #464645] Sat, 26 November 2005 15:27 Go to previous message
Lokesh Shah is currently offline Lokesh ShahFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks Mike.

~Lokesh
Previous Topic:SWT 2.1: Increasing Combo popup's Item count
Next Topic:cairo no longer shipped with 3.2M3?
Goto Forum:
  


Current Time: Tue Apr 16 18:24:22 GMT 2024

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

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

Back to the top