|
Re: Display.getActiveShell() [message #464645 is a reply to message #464638] |
Fri, 25 November 2005 21:56 |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03081 seconds