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 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 SnapshotUiPlugincom.google.inject.InjectorGets Guice injector of the plug-in.booleanstatic voidLogs an error message.static voidLogs an error.static voidLogs an information message.voidoptionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) 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.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startupMethods 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
nullif 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") 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.ui.plugin.AbstractUIPlugin- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classorg.eclipse.ui.plugin.AbstractUIPlugin- 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
-