Class Activator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class Activator
    extends org.eclipse.core.runtime.Plugin
    • Constructor Summary

      Constructors 
      Constructor Description
      Activator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Activator getDefault()  
      static LaunchBarManager getLaunchBarManager()  
      static LaunchTargetManager getLaunchTargetManager()  
      static <T> T getService​(java.lang.Class<T> service)
      Return the OSGi service with the given service interface.
      static void log​(java.lang.Throwable exception)  
      static void log​(org.eclipse.core.runtime.IStatus status)  
      void start​(org.osgi.framework.BundleContext bundleContext)  
      void stop​(org.osgi.framework.BundleContext bundleContext)  
      static void throwCoreException​(java.lang.Exception e)  
      static void trace​(java.lang.String str)  
      • Methods inherited from class org.eclipse.core.runtime.Plugin

        find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
      • Methods inherited from class java.lang.Object

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

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext bundleContext)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Overrides:
        start in class org.eclipse.core.runtime.Plugin
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext bundleContext)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class org.eclipse.core.runtime.Plugin
        Throws:
        java.lang.Exception
      • getDefault

        public static Activator getDefault()
      • getService

        public static <T> T getService​(java.lang.Class<T> service)
        Return the OSGi service with the given service interface.
        Parameters:
        service - service interface
        Returns:
        the specified service or null if it's not registered
      • throwCoreException

        public static void throwCoreException​(java.lang.Exception e)
                                       throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException
      • log

        public static void log​(org.eclipse.core.runtime.IStatus status)
      • log

        public static void log​(java.lang.Throwable exception)
      • trace

        public static void trace​(java.lang.String str)