Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » listener on display
listener on display [message #445285] Mon, 01 November 2004 16:30 Go to next message
Geoffrey Ritchey is currently offline Geoffrey RitcheyFriend
Messages: 42
Registered: July 2009
Member
Can someone tell me what listeners are available on the display.


I noticed that there is a DisposeListener for the shell, but I would
prefer to detect that the program is no longer in use by some sort of
listener on the display (since I will have shells that come and go). A
sort of "no more active shells" listener.

Is that possible?
Re: listener on display [message #445329 is a reply to message #445285] Tue, 02 November 2004 15:32 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
From the Javadoc for class Display:

* <dt><b>Events:</b></dt>
* <dd>Close, Dispose</dd>

Neither of these display events will help you. You'll have to count the
shells yourself as you create them and decrement your count in an SWT.Close
or SWT.Dispose listener for each shell.

"geoff" <geoffritchey@hotmail.com> wrote in message
news:cm5oaj$g7$1@eclipse.org...
>
> Can someone tell me what listeners are available on the display.
>
>
> I noticed that there is a DisposeListener for the shell, but I would
> prefer to detect that the program is no longer in use by some sort of
> listener on the display (since I will have shells that come and go). A
> sort of "no more active shells" listener.
>
> Is that possible?
>
>
>
Previous Topic:SWT Swing Interaction - JPopupMenu hide/show
Next Topic:Differences of the SWT application under different OS
Goto Forum:
  


Current Time: Fri Apr 19 16:24:40 GMT 2024

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

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

Back to the top