Class V8UiPlugin

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

    public class V8UiPlugin
    extends org.eclipse.ui.plugin.AbstractUIPlugin
    The activator class controls the plug-in life cycle
    • 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
      V8UiPlugin()  
    • Constructor Detail

      • V8UiPlugin

        public V8UiPlugin()
    • Method Detail

      • 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.ui.plugin.AbstractUIPlugin
        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.ui.plugin.AbstractUIPlugin
        Throws:
        Exception
      • getDefault

        public static V8UiPlugin getDefault()
        Returns the shared instance
        Returns:
        the shared instance
      • getInjector

        public com.google.inject.Injector getInjector()
        Returns:
        plugin injector
      • getWizardImage

        public static org.eclipse.swt.graphics.Image getWizardImage​(org.eclipse.ui.wizards.IWizardDescriptor wizardDescriptor)
        Returns cached wizard image for the given wizard descriptor.
        Parameters:
        wizardDescriptor - the wizard descriptor to get cached image for, cannot be null
        Returns:
        cached wizard image for the given wizard descriptor, neve null
      • logError

        public static void logError​(Throwable e)
      • logError

        public static void logError​(String message)
        Log error with the given message.
        Parameters:
        message - the status message, cannot be null
      • logWarning

        public static void logWarning​(String message)
      • log

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

        public static org.eclipse.core.runtime.IStatus createErrorStatus​(String msg,
                                                                         Throwable e)
        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 msg)
        Create new warning status with message
        Parameters:
        message - String
        Returns:
        new instance of Status
      • getFormColors

        public DtFormColors getFormColors()
        Returns a shared FormColors for the using on the form editors.
        Returns:
        a shared FormColors
      • getWizardColors

        public DtFormColors getWizardColors()
        Returns a shared FormColors for the using on the wizards.
        Returns:
        a shared FormColors
      • initializeImageRegistry

        protected void initializeImageRegistry​(org.eclipse.jface.resource.ImageRegistry reg)
        Overrides:
        initializeImageRegistry in class org.eclipse.ui.plugin.AbstractUIPlugin