Re: Quit menu notification with SWT on Mac OS X ?
- From: "John B. Matthews" <nospam@xxxxxxxxxx>
- Date: Fri, 16 May 2008 09:13:20 -0400
In article <Patrick.Stadelmann-7AB856.11535316052008@xxxxxxxxxxxxxx>,
Patrick Stadelmann <Patrick.Stadelmann@xxxxxxxx> wrote:
Hi,
I have a GUI java application built with SWT that has a single shell. On
Mac OS X, it is packaged as an application bundle, using the Eclipse
export module "Mac OS X application bundle".
I need to perform some actions before the shell is disposed. I found how
to install a handler for the "close" event, sent when the user's click
on the window's close box. However, if he use the Quit menu in the
standard Mac OS X application menu, I don't get notified.
How can I get notified either when the shell is about to be disposed
(whether is due to the Quit menu or to the window's close box), or when
the Quit menu is invoked ?
Thanks,
Patrick
What version of Eclipse?
You'll need to implement java.awt.event.WindowListener and possibly
com.apple.eawt.ApplicationListener.
The platform will handle Preferences flush().
John
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
.
- Follow-Ups:
- Re: Quit menu notification with SWT on Mac OS X ?
- From: Patrick Stadelmann
- Re: Quit menu notification with SWT on Mac OS X ?
- References:
- Quit menu notification with SWT on Mac OS X ?
- From: Patrick Stadelmann
- Quit menu notification with SWT on Mac OS X ?
- Prev by Date: Re: (File)OutputStreams and their usage
- Next by Date: Re: Does using a CMS to manage security to an applet make sense?
- Previous by thread: Quit menu notification with SWT on Mac OS X ?
- Next by thread: Re: Quit menu notification with SWT on Mac OS X ?
- Index(es):
Relevant Pages
|