org.eclipse.core.runtime.internal.adaptor
Class DefaultStartupMonitor

java.lang.Object
  extended by org.eclipse.core.runtime.internal.adaptor.DefaultStartupMonitor
All Implemented Interfaces:
StartupMonitor

public class DefaultStartupMonitor
extends java.lang.Object
implements StartupMonitor


Constructor Summary
DefaultStartupMonitor(java.lang.Runnable splashHandler)
          Create a new startup monitor using the given splash handler.
 
Method Summary
 void applicationRunning()
          This method is called by the platform from the primary thread once the application is completely initialized and running.
 void update()
          Update the monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStartupMonitor

public DefaultStartupMonitor(java.lang.Runnable splashHandler)
                      throws java.lang.IllegalStateException
Create a new startup monitor using the given splash handler. The splash handle must have an updateSplash method.

Parameters:
splashHandler -
Throws:
java.lang.IllegalStateException
Method Detail

update

public void update()
Description copied from interface: StartupMonitor
Update the monitor. This method is periodically called by the platform from the primary thread during periods where the primary thread is waiting on another thread (ie start level increasing, refreshing packages)

If multiple monitors are registered then the platform will only call the monitor with the highest service ranking. In case of a service ranking tie the service with the lowest service id is selected (i.e. the first monitor registered).

Specified by:
update in interface StartupMonitor

applicationRunning

public void applicationRunning()
Description copied from interface: StartupMonitor
This method is called by the platform from the primary thread once the application is completely initialized and running. This method should perform certain operations that are needed once an application is running. One example is bringing down a splash screen if it exists.

If multiple monitors are registered then the platform will call all monitors. The monitors are called according to service ranking; monitors with higher service rankings are called first. In case of a service ranking tie the service with the lowest service id is called first (i.e. the first monitor registered).

Specified by:
applicationRunning in interface StartupMonitor