How to Restart Your NetBeans Platform App

  1 post   Feedicon  
Replies: 0 - Last Post: October 12, 2010 03:08
by: Bruce Schubert
showing 1 - 1 of 1
 
Posted: October 12, 2010 03:08 by Bruce Schubert
This is something I learned in my NetBeans Platform Training: here's how to restart your NetBeans Platform (RCP) application:

First, add a dependancy to the Utilities API to the module that should initiate the restart, and then add the following code snippets:

import org.openide.LifecycleManager;
. . .
// Shutdown and restart
LifecycleManager.getDefault().markForRestart();

// Or if you want to shutdown...
LifecycleManager.getDefault().exit();
Replies: 0 - Last Post: October 12, 2010 03:08
by: Bruce Schubert
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close