Search in sources :

Example 1 with ApplicationRunnable

use of org.eclipse.osgi.service.runnable.ApplicationRunnable in project equinox.bundles by eclipse-equinox.

the class MainApplicationLauncher method run.

@Override
public Object run(Object context) throws Exception {
    appContainer.startDefaultApp(false);
    ApplicationRunnable mainHandle = getMainHandle();
    if (mainHandle != null)
        return mainHandle.run(context);
    throw new ApplicationException(ApplicationException.APPLICATION_INTERNAL_ERROR, Messages.application_noIdFound);
}
Also used : ApplicationRunnable(org.eclipse.osgi.service.runnable.ApplicationRunnable) ApplicationException(org.osgi.service.application.ApplicationException)

Aggregations

ApplicationRunnable (org.eclipse.osgi.service.runnable.ApplicationRunnable)1 ApplicationException (org.osgi.service.application.ApplicationException)1