Class MdNativePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
com._1c.g5.v8.dt.internal.mdnative.MdNativePlugin
- All Implemented Interfaces:
EventListener,org.eclipse.osgi.service.debug.DebugOptionsListener,org.osgi.framework.BundleActivator
public class MdNativePlugin
extends org.eclipse.core.runtime.Plugin
implements org.eclipse.osgi.service.debug.DebugOptionsListener
Md native plugin.
-
Field Summary
FieldsFields 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 org.eclipse.core.runtime.IStatuscreateErrorStatus(String msg, Throwable e) Creates errorIStatusby the message andThrowablestatic org.eclipse.core.runtime.IStatusCreates warningIStatusby the messagestatic MdNativePluginGets plugincom.google.inject.InjectorGets the Guice injector for the binary module.booleanstatic voidlog(org.eclipse.core.runtime.IStatus status) LogsIStatusvoidoptionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) static voidPrints the given message to the OSGi tracing (if started)static voidtraceEntry(String option, Object methodArgument) Add a trace message level stating that a method with the specified argument values is being executed for the specified option.static voidAdd a trace message level stating that a method has completed execution for the specified option.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:
-
-
Constructor Details
-
MdNativePlugin
public MdNativePlugin()
-
-
Method Details
-
createErrorStatus
Creates errorIStatusby the message andThrowable- Parameters:
msg- error message, cannot benulle- exception for creatingIStatus, can benull- Returns:
- created
IStatus, cannotnull
-
createWarningStatus
Creates warningIStatusby the message- Parameters:
msg- warning message, cannot benull- Returns:
- created
IStatus, cannotnull
-
getDefault
Gets plugin- Returns:
- the plugin, never
null
-
log
public static void log(org.eclipse.core.runtime.IStatus status) LogsIStatus- Parameters:
status- loggingIStatus, cannot benull
-
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
-
isDebugging
public boolean isDebugging()- Overrides:
isDebuggingin classorg.eclipse.core.runtime.Plugin
-
trace
Prints the given message to the OSGi tracing (if started)- Parameters:
option- the option ornullmessage- the message to print ornull
-
traceEntry
Add a trace message level stating that a method with the specified argument values is being executed for the specified option. The result ofString.valueOf(Object)on the methodArgument will be written to the trace file.- Parameters:
option- The name of the boolean option that will control whether the trace statement is printed (e.g., "/debug/myComponent"), ornullmethodArgument- The single argument for the method being executed
-
traceExit
Add a trace message level stating that a method has completed execution for the specified option.- Parameters:
option- The name of the boolean option that will control whether the trace statement is printed (e.g., "/debug/myComponent"), ornull
-
getInjector
public com.google.inject.Injector getInjector()Gets the Guice injector for the binary module.- Returns:
- Injector instance, never
null
-