Class MoxelCorePlugin

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

    public class MoxelCorePlugin
    extends org.eclipse.core.runtime.Plugin
    Plugin with injector for moxel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ID
      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
      MoxelCorePlugin()  
    • Constructor Detail

      • MoxelCorePlugin

        public MoxelCorePlugin()
    • Method Detail

      • getInstance

        public static MoxelCorePlugin getInstance()
        The static convenience method to gain access to a plug-in's runtime object.
        Returns:
        the plug-in's runtime object.
      • createErrorStatus

        public static org.eclipse.core.runtime.IStatus createErrorStatus​(String message,
                                                                         Throwable throwable)
        Create new error status with message
        Parameters:
        message - String
        throwable -
        Returns:
        new instance of Status
      • createWarningStatus

        public static org.eclipse.core.runtime.IStatus createWarningStatus​(String message)
        Creates warning status.
        Parameters:
        message - String
        Returns:
        status
      • log

        public static void log​(org.eclipse.core.runtime.IStatus status)
        Logs the status to eclipse log
        Parameters:
        status - - status with message
      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws Exception
        Starts this plug-in.
        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
        Stops this plug-in.
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class org.eclipse.core.runtime.Plugin
        Throws:
        Exception
      • getInjector

        public com.google.inject.Injector getInjector()
        Creates plugin's injector
        Returns:
        created injector