Ejemplo n.º 1
0
 /**
  * Returns the <tt>BrowserLauncherService</tt> obtained from the bundle context.
  *
  * @return the <tt>BrowserLauncherService</tt> obtained from the bundle context
  */
 static BrowserLauncherService getBrowserLauncher() {
   if (browserLauncher == null) {
     browserLauncher = ServiceUtils.getService(bundleContext, BrowserLauncherService.class);
   }
   return browserLauncher;
 }
Ejemplo n.º 2
0
 /**
  * Gets a reference to a <code>ShutdownService</code> implementation currently registered in the
  * bundle context of the active <code>UpdateCheckActivator</code> instance.
  *
  * <p>The returned reference to <code>ShutdownService</code> is not being cached.
  *
  * @return reference to a <code>ShutdownService</code> implementation currently registered in the
  *     bundle context of the active <code>UpdateCheckActivator</code> instance
  */
 static ShutdownService getShutdownService() {
   return ServiceUtils.getService(bundleContext, ShutdownService.class);
 }
Ejemplo n.º 3
0
 /**
  * Returns a reference to the UIService implementation currently registered in the bundle context
  * or null if no such implementation was found.
  *
  * @return a reference to a UIService implementation currently registered in the bundle context or
  *     null if no such implementation was found.
  */
 static UIService getUIService() {
   if (uiService == null) uiService = ServiceUtils.getService(bundleContext, UIService.class);
   return uiService;
 }
Ejemplo n.º 4
0
 /**
  * Returns the <tt>ConfigurationService</tt> obtained from the bundle context.
  *
  * @return the <tt>ConfigurationService</tt> obtained from the bundle context
  */
 static ConfigurationService getConfiguration() {
   if (configuration == null) {
     configuration = ServiceUtils.getService(bundleContext, ConfigurationService.class);
   }
   return configuration;
 }