Package org.eclipse.osgi.service.runnable

Examples of org.eclipse.osgi.service.runnable.StartupMonitor


  private static void updateSplash(Semaphore semaphore, StartupEventListener listener) {
    ServiceTracker monitorTracker = new ServiceTracker(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = (StartupMonitor) monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here


  private static void updateSplash(Semaphore semaphore, StartupEventListener listener) {
    ServiceTracker<StartupMonitor, StartupMonitor> monitorTracker = new ServiceTracker<StartupMonitor, StartupMonitor>(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here

  private static void updateSplash(Semaphore semaphore, FrameworkListener listener) {
    ServiceTracker monitorTracker = new ServiceTracker(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = (StartupMonitor) monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here

        Dictionary properties = new Hashtable();
        properties.put(Constants.SERVICE_RANKING, new Integer(Integer.MAX_VALUE));
        BundleContext context = WorkbenchPlugin.getDefault().getBundleContext();
        final ServiceRegistration registration[] = new ServiceRegistration[1];
        StartupMonitor startupMonitor = new StartupMonitor() {

          public void applicationRunning() {
            splash.dispose();
            if (background != null)
              background.dispose();
View Full Code Here

        // handleException(ISafeRunnable)
      }

      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]);
          }
        }
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.service.runnable.StartupMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.