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 Stringstatic final StringTrace option to enable tracing.static final StringTrace 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 DtSnapshotPlugincom.google.inject.InjectorGets Guice injector of the plug-in.booleanstatic voidLogs an error.static voidLogs an information message.static voidlogWarning(String message) Logs a warning message.voidoptionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) voidstart(org.osgi.framework.BundleContext bundleContext) voidstop(org.osgi.framework.BundleContext bundleContext) static voidLazily prints a message to the OSGi tracing if started and plug-in is in debug mode.static voidLazily 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
nullif 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") ornullif 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") ornullif nonemessageSupplier- Supplier of lazy message that is to be printed. Must not benull.exception- Exception to be attached to the message ornullif none.
-
isDebugging
public boolean isDebugging()- Overrides:
isDebuggingin classorg.eclipse.core.runtime.Plugin
-
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
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) - Specified by:
optionsChangedin 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
-