Class V8UiPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.e1c.langtool.v8.dt.internal.ui.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 Details

  • Constructor Details

    • V8UiPlugin

      public V8UiPlugin()
  • Method Details

    • getDefault

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

      public static void log(org.eclipse.core.runtime.IStatus status)
      Writes a status to the plugin log.
      Parameters:
      status - status to log, cannot be null
    • logError

      public static void logError(Throwable throwable)
      Writes a throwable to the plugin log as error status.
      Parameters:
      throwable - throwable, cannot be null
    • logError

      public static void logError(String message, Throwable throwable)
      Writes a throwable with the given message to the plugin log as error status.
      Parameters:
      message - message to log
      throwable - throwable, cannot be null
    • logInfo

      public static void logInfo(String message)
      Writes an info status to the plugin log.
      Parameters:
      status - status to log, cannot be null
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
      Creates error status by a given message and cause throwable.
      Parameters:
      message - status message, cannot be null
      throwable - throwable, can be null if not applicable
      Returns:
      status created error status, never null
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
      Creates warning status by a given message.
      Parameters:
      message - status message, cannot be null
      Returns:
      status created warning status, never null
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message, Exception throwable)
      Creates warning status by a given message and cause throwable.
      Parameters:
      message - status message, cannot be null
      throwable - throwable, can be null if not applicable
      Returns:
      status created warning status, never null
    • createInfoStatus

      public static org.eclipse.core.runtime.IStatus createInfoStatus(String message)
      Creates info status by a given message.
      Parameters:
      message - status message, cannot be null
      Returns:
      status created info status, never null
    • 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
    • getInjector

      public com.google.inject.Injector getInjector()
      Returns Guice injector of the plugin
      Returns:
      Guice injector of the plugin, never null if plugin is started
    • getPreferenceStore

      public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore(org.eclipse.core.resources.IProject project)
    • getContext

      protected org.osgi.framework.BundleContext getContext()
      Returns bundle context of the plugin.
      Returns:
      bundle context of the plugin, never null if plugin is started
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String id)
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String id)
    • initializeImageRegistry

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