Package com.e1c.g5.v8.internal.snapshot
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotPluginGets an active instance of the plug-in activator.com.google.inject.InjectorGets plug-in Guice injector.static voidCreates and logs an error status.static voidLogs an information message.static voidLogs a warning message.voidstart(org.osgi.framework.BundleContext context) voidstop(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
-
Constructor Details
-
SnapshotPlugin
public SnapshotPlugin()
-
-
Method Details
-
getDefault
Gets an active instance of the plug-in activator.- Returns:
- the snapshot plug-in instance, or
nullif the plug-in is not active
-
logError
Creates and logs an error status.- Parameters:
message- the message, cannot benullthrowable- the cause throwable, may benull
-
logInfo
Logs an information message.- Parameters:
message- the message, cannot benull
-
logWarn
Logs a warning message.- Parameters:
message- the message, cannot benull
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classorg.eclipse.core.runtime.Plugin- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classorg.eclipse.core.runtime.Plugin- Throws:
Exception
-
getInjector
public com.google.inject.Injector getInjector()Gets plug-in Guice injector.- Returns:
- the injector, never
null
-