Class XmdbPlugin

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

    public class XmdbPlugin
    extends org.eclipse.core.runtime.Plugin
    implements org.osgi.framework.BundleActivator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String PLUGIN_ID  
      • Fields inherited from class org.eclipse.core.runtime.Plugin

        PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      XmdbPlugin()
      The constructor
    • Constructor Detail

      • XmdbPlugin

        public XmdbPlugin()
        The constructor
    • Method Detail

      • getLogger

        public static org.slf4j.Logger getLogger()
      • logError

        public static void logError​(Exception e)
      • logWarning

        public static void logWarning​(String msg)
      • start

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

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

        public static XmdbPlugin getDefault()
        Returns the shared instance
        Returns:
        the shared instance
      • createErrorStatus

        public static org.eclipse.core.runtime.IStatus createErrorStatus​(String message,
                                                                         Exception e)
        Creates bundle status
        Parameters:
        message -
        e -
        Returns: