Skip to main content



      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 02: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 10:52 Go to previous messageGo to next message
Eclipse UserFriend
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 11:00 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 07:22:56 EDT 2025

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

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

Back to the top