public Object addingService(ServiceReference reference) { return Activator.getContext().getService(reference); }
@Override public Object addingService(ServiceReference reference) { return Activator.getContext().getService(reference); }
public Object addingService(ServiceReference reference) { return Activator.getContext().getService(reference); }
public void run() throws Exception { for (int i = 0; i < monitors.length; i++) { StartupMonitor monitor = (StartupMonitor) Activator.getContext().getService(monitors[i]); if (monitor != null) { monitor.applicationRunning(); Activator.getContext().ungetService(monitors[i]); } } } });
public void run() throws Exception { for (int i = 0; i < monitors.length; i++) { StartupMonitor monitor = (StartupMonitor) Activator.getContext().getService(monitors[i]); if (monitor != null) { monitor.applicationRunning(); Activator.getContext().ungetService(monitors[i]); } } } });
@Override public void run() throws Exception { for (int i = 0; i < monitors.length; i++) { StartupMonitor monitor = (StartupMonitor) Activator.getContext().getService(monitors[i]); if (monitor != null) { monitor.applicationRunning(); Activator.getContext().ungetService(monitors[i]); } } } });
private static EnvironmentInfo getEnvironmentInfo() { BundleContext bc = Activator.getContext(); if (bc == null) return null; ServiceReference infoRef = bc.getServiceReference(EnvironmentInfo.class.getName()); if (infoRef == null) return null; EnvironmentInfo envInfo = (EnvironmentInfo) bc.getService(infoRef); if (envInfo == null) return null; bc.ungetService(infoRef); return envInfo; }
private static EnvironmentInfo getEnvironmentInfo() { BundleContext bc = Activator.getContext(); if (bc == null) return null; ServiceReference infoRef = bc.getServiceReference(EnvironmentInfo.class.getName()); if (infoRef == null) return null; EnvironmentInfo envInfo = (EnvironmentInfo) bc.getService(infoRef); if (envInfo == null) return null; bc.ungetService(infoRef); return envInfo; }
private static EnvironmentInfo getEnvironmentInfo() { BundleContext bc = Activator.getContext(); if (bc == null) return null; ServiceReference infoRef = bc.getServiceReference(EnvironmentInfo.class.getName()); if (infoRef == null) return null; EnvironmentInfo envInfo = (EnvironmentInfo) bc.getService(infoRef); if (envInfo == null) return null; bc.ungetService(infoRef); return envInfo; }
refs = Activator.getContext().getServiceReferences(StartupMonitor.class.getName(), null); } catch (InvalidSyntaxException e) {
refs = Activator.getContext().getServiceReferences(StartupMonitor.class.getName(), null); } catch (InvalidSyntaxException e) {
refs = Activator.getContext().getServiceReferences(StartupMonitor.class.getName(), null); } catch (InvalidSyntaxException e) {
public DefaultApplicationListener(EclipseAppHandle defaultApp) { ServiceReference defaultRef = defaultApp.getServiceReference(); if (defaultRef == null) { // service has been unregistered; application has ended already, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; return; } ServiceTracker defaultAppTracker = new ServiceTracker(Activator.getContext(), defaultRef, this); defaultAppTracker.open(); EclipseAppHandle trackedApp = (EclipseAppHandle) defaultAppTracker.getService(); if (trackedApp == null) { // close tracker since we do not care about tracking the app (bug 215764) defaultAppTracker.close(); // service has been unregistered; application has ended aready, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; } else { handleTracker = defaultAppTracker; } }
public DefaultApplicationListener(EclipseAppHandle defaultApp) { ServiceReference defaultRef = defaultApp.getServiceReference(); if (defaultRef == null) { // service has been unregistered; application has ended already, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; return; } ServiceTracker defaultAppTracker = new ServiceTracker(Activator.getContext(), defaultRef, this); defaultAppTracker.open(); EclipseAppHandle trackedApp = (EclipseAppHandle) defaultAppTracker.getService(); if (trackedApp == null) { // close tracker since we do not care about tracking the app (bug 215764) defaultAppTracker.close(); // service has been unregistered; application has ended aready, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; } else { handleTracker = defaultAppTracker; } }
public DefaultApplicationListener(EclipseAppHandle defaultApp) { ServiceReference defaultRef = defaultApp.getServiceReference(); if (defaultRef == null) { // service has been unregistered; application has ended already, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; return; } ServiceTracker defaultAppTracker = new ServiceTracker(Activator.getContext(), defaultRef, this); defaultAppTracker.open(); EclipseAppHandle trackedApp = (EclipseAppHandle) defaultAppTracker.getService(); if (trackedApp == null) { // close tracker since we do not care about tracking the app (bug 215764) defaultAppTracker.close(); // service has been unregistered; application has ended aready, // save the result for latter result = defaultApp.waitForResult(100); handleTracker = null; } else { handleTracker = defaultAppTracker; } }