public Object addingService(ServiceReference reference) { ApplicationLauncher appLauncher; ParameterizedRunnable appRunnable; synchronized (this) { appLauncher = (ApplicationLauncher) context.getService(reference); // see if there is a default main threaded application waiting to run appRunnable = defaultMainThreadAppHandle; // null out so we do not attempt to start this handle again defaultMainThreadAppHandle = null; if (appRunnable == null && missingApp) { missingAppLauncher = new MainApplicationLauncher(this); appRunnable = missingAppLauncher; missingApp = false; } } if (appRunnable != null) // found a main threaded app; start it now that the app launcher is available appLauncher.launch(appRunnable, appRunnable instanceof EclipseAppHandle ? ((EclipseAppHandle) appRunnable).getArguments().get(IApplicationContext.APPLICATION_ARGS) : null); return appLauncher; }
public Object addingService(ServiceReference reference) { ApplicationLauncher appLauncher; ParameterizedRunnable appRunnable; synchronized (this) { appLauncher = (ApplicationLauncher) context.getService(reference); // see if there is a default main threaded application waiting to run appRunnable = defaultMainThreadAppHandle; // null out so we do not attempt to start this handle again defaultMainThreadAppHandle = null; if (appRunnable == null && missingApp) { missingAppLauncher = new MainApplicationLauncher(this); appRunnable = missingAppLauncher; missingApp = false; } } if (appRunnable != null) // found a main threaded app; start it now that the app launcher is available appLauncher.launch(appRunnable, appRunnable instanceof EclipseAppHandle ? ((EclipseAppHandle) appRunnable).getArguments().get(IApplicationContext.APPLICATION_ARGS) : null); return appLauncher; }
@Override public Object addingService(ServiceReference reference) { ApplicationLauncher appLauncher; ParameterizedRunnable appRunnable; synchronized (this) { appLauncher = (ApplicationLauncher) context.getService(reference); // see if there is a default main threaded application waiting to run appRunnable = defaultMainThreadAppHandle; // null out so we do not attempt to start this handle again defaultMainThreadAppHandle = null; if (appRunnable == null && missingApp) { missingAppLauncher = new MainApplicationLauncher(this); appRunnable = missingAppLauncher; missingApp = false; } } if (appRunnable != null) // found a main threaded app; start it now that the app launcher is available appLauncher.launch(appRunnable, appRunnable instanceof EclipseAppHandle ? ((EclipseAppHandle) appRunnable).getArguments().get(IApplicationContext.APPLICATION_ARGS) : null); return appLauncher; }
curMissingAppLauncher.launch(appHandle); else appLauncher.launch(appHandle, appHandle.getArguments().get(IApplicationContext.APPLICATION_ARGS)); } else { if (isDefault) {
curMissingAppLauncher.launch(appHandle); else appLauncher.launch(appHandle, appHandle.getArguments().get(IApplicationContext.APPLICATION_ARGS)); } else { if (isDefault) {
curMissingAppLauncher.launch(appHandle); else appLauncher.launch(appHandle, appHandle.getArguments().get(IApplicationContext.APPLICATION_ARGS)); } else { if (isDefault) {