Package com.iizigo

Class Startup

  • All Implemented Interfaces:
    org.eclipse.ui.IStartup

    public class Startup
    extends java.lang.Object
    implements org.eclipse.ui.IStartup
    The start-up class for UI processing.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      Startup()
      The Eclipse constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidcallOnStart​(java.lang.Runnable callback)
      Calls the runnable callback in the SWT thread upon startup completed.
      voidearlyStartup()
      Will be called in a separate thread after the workbench initializes.
      static booleanisStartingUp()
      Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.
      static booleanisStartingUp​(java.lang.Runnable callback)
      Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.
      static booleanisStartingUp2​(java.lang.Runnable callback)
      Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Startup

        public Startup()
        The Eclipse constructor.
    • Method Detail

      • earlyStartup

        public void earlyStartup()
        Will be called in a separate thread after the workbench initializes.

        DO NOT CALL THIS METHOD, ECLIPSE FRAMEWORK WILL DO SO.

        Specified by:
        earlyStartup in interface org.eclipse.ui.IStartup
      • isStartingUp

        public static boolean isStartingUp()
        Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.
        Returns:
        true If starting up, false otherwise.
      • isStartingUp

        public static boolean isStartingUp​(java.lang.Runnable callback)
        Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.

        The calls to isStartingUp will be invoked before all callbacks from isStartingUp2.

        Parameters:
        callback - Callback that will be invoked when start-up is completed, unless already completed.
        Returns:
        true If starting up and callback will be called later, false otherwise.
      • callOnStart

        public static void callOnStart​(java.lang.Runnable callback)
        Calls the runnable callback in the SWT thread upon startup completed. If already started, the callback is called asynchronously if not called from the SWT thread.
        Parameters:
        callback - The callback.
      • isStartingUp2

        public static boolean isStartingUp2​(java.lang.Runnable callback)
        Checks if the iizi Plug-ins are starting up and if so, registers a callback that will be called from the SWT thread when the startup has completed.

        The calls to isStartingUp2 will be invoked after all callbacks from isStartingUp.

        This method causes the callbacks to be called last in the chain when startup completes.

        Parameters:
        callback - Callback that will be invoked when start-up is completed, unless already completed.
        Returns:
        true If starting up and callback will be called later, false otherwise.