Class SnapshotUiPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.e1c.g5.v8.dt.internal.snapshot.integration.ui.SnapshotUiPlugin
- All Implemented Interfaces:
EventListener
,org.eclipse.osgi.service.debug.DebugOptionsListener
,org.osgi.framework.BundleActivator
public class SnapshotUiPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements org.eclipse.osgi.service.debug.DebugOptionsListener
Snapshot Integration UI 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 SnapshotUiPlugin
com.google.inject.Injector
Gets Guice injector of the plug-in.boolean
static void
Logs an error message.static void
Logs an error.static void
Logs an information message.void
optionsChanged
(org.eclipse.osgi.service.debug.DebugOptions options) void
start
(org.osgi.framework.BundleContext context) void
stop
(org.osgi.framework.BundleContext context) 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.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, openStream, openStream, savePluginPreferences, setDebugging, 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
-
SnapshotUiPlugin
public SnapshotUiPlugin()
-
-
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
-
logError
Logs an error 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.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- 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
-