org.eclipse.core.runtime.adaptor.EclipseStarter Java Examples
The following examples show how to use
org.eclipse.core.runtime.adaptor.EclipseStarter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EclipseDaemon.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * This method starts OSGi container, and returns immediately * <p> * The method will actually fork a thread and run the started method from * inside the thread. If the framework fails the method checks * {@link #isExitOnError()} on how to proceed. If {@link #isExitOnError()} * returns <code>true</code> then the method will call * {@link System#exit(int)} with a negative return value (-1). Otherwise * only the thread starting the framework will shut down. * </p> * * @param args * arguments for the starter * @throws Exception * if anything goes wrong */ public static void start ( final String[] args ) throws Exception { final Thread runner = new Thread ( "EclipseStarter" ) { //$NON-NLS-1$ @Override public void run () { try { EclipseStarter.main ( args ); } catch ( final Exception e ) { if ( isExitOnError () ) { System.exit ( -1 ); } } }; }; runner.start (); }
Example #2
Source File: EclipseDaemon.java From neoscada with Eclipse Public License 1.0 | 2 votes |
/** * This method starts OSGi container, but does not return as long as the * container is active * * @param args * arguments for the starter * @throws Exception * if anything goes wrong */ public static void main ( final String[] args ) throws Exception { EclipseStarter.main ( args ); }
Example #3
Source File: EclipseDaemon.java From neoscada with Eclipse Public License 1.0 | 2 votes |
/** * Stop the framework * * @see #stop() * @param args * @throws Exception */ public static void stop ( final String[] args ) throws Exception { EclipseStarter.shutdown (); }
Example #4
Source File: EclipseDaemon.java From neoscada with Eclipse Public License 1.0 | 2 votes |
/** * The method shuts down the framework * <p> * The framework could have been started by {@link #start(String[])} or * {@link #main(String[])}. * </p> * * @throws Exception * if anything goes wrong */ public static void stop () throws Exception { EclipseStarter.shutdown (); }