org.eclipse.core.runtime.internal.adaptor
Class EclipseAppLauncher

java.lang.Object
  extended by org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
All Implemented Interfaces:
ApplicationLauncher

public class EclipseAppLauncher
extends java.lang.Object
implements ApplicationLauncher


Constructor Summary
EclipseAppLauncher(BundleContext context, boolean relaunch, boolean failOnNoDefault, org.eclipse.osgi.framework.log.FrameworkLog log)
           
 
Method Summary
 void launch(ParameterizedRunnable app, java.lang.Object appContext)
          Launches the specified runnable using the main thread.
 java.lang.Object reStart(java.lang.Object argument)
           
 void shutdown()
          Forces the current runnable which is running to be stopped.
 java.lang.Object start(java.lang.Object defaultContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseAppLauncher

public EclipseAppLauncher(BundleContext context,
                          boolean relaunch,
                          boolean failOnNoDefault,
                          org.eclipse.osgi.framework.log.FrameworkLog log)
Method Detail

start

public java.lang.Object start(java.lang.Object defaultContext)
                       throws java.lang.Exception
Throws:
java.lang.Exception

launch

public void launch(ParameterizedRunnable app,
                   java.lang.Object appContext)
Description copied from interface: ApplicationLauncher
Launches the specified runnable using the main thread.

Specified by:
launch in interface ApplicationLauncher
Parameters:
app - a ParameterizedRunnalbe to run on the main thread.
appContext - the context to launch the runnable with

shutdown

public void shutdown()
Description copied from interface: ApplicationLauncher
Forces the current runnable which is running to be stopped. This method will return after the currently running ParameterizedRunnable has completely stopped.

After this method returns this ApplicationLauncher will no longer allow applications to be launched.

Specified by:
shutdown in interface ApplicationLauncher

reStart

public java.lang.Object reStart(java.lang.Object argument)
                         throws java.lang.Exception
Throws:
java.lang.Exception