Class SnapshotPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
com.e1c.g5.v8.internal.snapshot.SnapshotPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class SnapshotPlugin extends org.eclipse.core.runtime.Plugin
Snapshot plug-in activator.
  • Field Summary

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an active instance of the plug-in activator.
    com.google.inject.Injector
    Gets plug-in Guice injector.
    static void
    logError(String message, Throwable throwable)
    Creates and logs an error status.
    static void
    logInfo(String message)
    Logs an information message.
    static void
    logWarn(String message)
    Logs a warning message.
    void
    start(org.osgi.framework.BundleContext context)
     
    void
    stop(org.osgi.framework.BundleContext context)
     

    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 Details

    • SnapshotPlugin

      public SnapshotPlugin()
  • Method Details

    • getDefault

      public static SnapshotPlugin getDefault()
      Gets an active instance of the plug-in activator.
      Returns:
      the snapshot plug-in instance, or null if the plug-in is not active
    • logError

      public static void logError(String message, Throwable throwable)
      Creates and logs an error status.
      Parameters:
      message - the message, cannot be null
      throwable - the cause throwable, may be null
    • logInfo

      public static void logInfo(String message)
      Logs an information message.
      Parameters:
      message - the message, cannot be null
    • logWarn

      public static void logWarn(String message)
      Logs a warning message.
      Parameters:
      message - the message, cannot be 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.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
    • getInjector

      public com.google.inject.Injector getInjector()
      Gets plug-in Guice injector.
      Returns:
      the injector, never null