Class DtSnapshotPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
com.e1c.g5.v8.dt.internal.snapshot.DtSnapshotPlugin
- All Implemented Interfaces:
EventListener
,org.eclipse.osgi.service.debug.DebugOptionsListener
,org.osgi.framework.BundleActivator
public class DtSnapshotPlugin
extends org.eclipse.core.runtime.Plugin
implements org.eclipse.osgi.service.debug.DebugOptionsListener
DT Snapshot plug-in activator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
Trace option to enable tracing.static final String
Trace option to enable generic tracing category.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 DtSnapshotPlugin
com.google.inject.Injector
Gets Guice injector of the plug-in.boolean
static void
Logs an error.static void
Logs an information message.static void
logWarning
(String message) Logs a warning message.void
optionsChanged
(org.eclipse.osgi.service.debug.DebugOptions options) void
start
(org.osgi.framework.BundleContext bundleContext) void
stop
(org.osgi.framework.BundleContext bundleContext) static void
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode.static void
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode.Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
TRACE_GENERIC
Trace option to enable generic tracing category.- See Also:
-
TRACE_DEBUG
Trace option to enable tracing. If this option is off then other trace options are ignored.- See Also:
-
-
Constructor Details
-
DtSnapshotPlugin
public DtSnapshotPlugin()
-
-
Method Details
-
getDefault
- Returns:
- the instance of the plug-in, or
null
if the plug-in is not active
-
logError
Logs an error.- Parameters:
e
- the error, cannot benull
-
logWarning
Logs a warning message.- Parameters:
message
- the message, cannot benull
-
logInfo
Logs an information message.- Parameters:
message
- the message, cannot benull
-
trace
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode.- Parameters:
option
- the option that will control whether the trace statement is printed (e.g., "/debug/myComponent") ornull
if nonemessageSupplier
- Supplier of lazy message that is to be printed. Must not benull
.
-
trace
Lazily prints a message to the OSGi tracing if started and plug-in is in debug mode.- Parameters:
option
- the option that will control whether the trace statement is printed (e.g., "/debug/myComponent") ornull
if nonemessageSupplier
- Supplier of lazy message that is to be printed. Must not benull
.exception
- Exception to be attached to the message ornull
if none.
-
isDebugging
public boolean isDebugging()- Overrides:
isDebugging
in classorg.eclipse.core.runtime.Plugin
-
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
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) - Specified by:
optionsChanged
in interfaceorg.eclipse.osgi.service.debug.DebugOptionsListener
-
getInjector
public com.google.inject.Injector getInjector()Gets Guice injector of the plug-in.- Returns:
- the injector, never
null
-