Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to catch the JVM close
How to catch the JVM close [message #437513] Mon, 07 June 2004 06:24 Go to next message
Eclipse UserFriend
Originally posted by: naficbm.1net.gr

hello ,how to use Display to realize the
function of Runtime.getRuntime().addShutdownHook(..);
Re: How to catch the JVM close [message #437558 is a reply to message #437513] Mon, 07 June 2004 14:52 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Runtime is in java.lang, so you should not need to do anything different
(ie.- no need to use swt facilities here).

Grant

"w" <naficbm@1net.gr> wrote in message news:ca118c$luf$1@eclipse.org...
> hello ,how to use Display to realize the
> function of Runtime.getRuntime().addShutdownHook(..);
Re: How to catch the JVM close [message #437559 is a reply to message #437513] Mon, 07 June 2004 15:00 Go to previous message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
w wrote:

> hello ,how to use Display to realize the
> function of Runtime.getRuntime().addShutdownHook(..);

You could use Display.disposeExec(Runnable runnable) ...
this way you get informed just before the display is disposed.

Henning Rogge.
Previous Topic:Single Selection in CheckboxTableViewer does not work.
Next Topic:Show menu in DROP_DOWN ToolItem
Goto Forum:
  


Current Time: Fri Apr 26 05:28:59 GMT 2024

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

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

Back to the top