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.IStatus
createErrorStatus
(String msg, Throwable e) Creates errorIStatus
by the message andThrowable
static org.eclipse.core.runtime.IStatus
Creates warningIStatus
by the messagestatic MdNativePlugin
Gets plugincom.google.inject.Injector
Gets the Guice injector for the binary module.boolean
static void
log
(org.eclipse.core.runtime.IStatus status) LogsIStatus
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
Prints the given message to the OSGi tracing (if started)static void
traceEntry
(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 void
Add 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 errorIStatus
by the message andThrowable
- Parameters:
msg
- error message, cannot benull
e
- exception for creatingIStatus
, can benull
- Returns:
- created
IStatus
, cannotnull
-
createWarningStatus
Creates warningIStatus
by 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:
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
-
isDebugging
public boolean isDebugging()- Overrides:
isDebugging
in classorg.eclipse.core.runtime.Plugin
-
trace
Prints the given message to the OSGi tracing (if started)- Parameters:
option
- the option ornull
message
- 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"), ornull
methodArgument
- 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
-