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 SnapshotPlugin
Gets an active instance of the plug-in activator.com.google.inject.Injector
Gets plug-in Guice injector.static void
Creates and logs an error status.static void
Logs an information message.static void
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
-
Constructor Details
-
SnapshotPlugin
public SnapshotPlugin()
-
-
Method Details
-
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
Creates and logs an error status.- Parameters:
message
- the message, cannot benull
throwable
- 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:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
getInjector
public com.google.inject.Injector getInjector()Gets plug-in Guice injector.- Returns:
- the injector, never
null
-