Class V8UiValidationPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com._1c.g5.v8.dt.internal.ui.validation.V8UiValidationPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class V8UiValidationPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
The activator class controls the plug-in life cycle
-
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) Create new error status with messagestatic IBmModelManager
GetsIBmModelManager
service referencestatic BslCheckSuppressor
GetsBslCheckSuppressor
service referencestatic ICheckRepository
Returns an instance ofICheckRepository
.static V8UiValidationPlugin
Returns the shared instancestatic IDerivedDataManagerProvider
GetsIDerivedDataManagerProvider
service referencestatic IDtProjectManager
Returns an instance ofIDtProjectManager
.static org.eclipse.xtext.ui.editor.IURIEditorOpener
GetsIURIEditorOpener
service referencestatic IFilterBySubsystemsManager
GetsIFilterBySubsystemsManager
service referencestatic IFixManager
Returns an instance ofIFixManager
.static IFixRepository
Returns an instance ofIFixRepository
.com.google.inject.Injector
Returns Guice injector for this plugin.static IMarkerManagerV2
Returns an instance ofIMarkerManagerV2
.static ProblemFilters
Returns an instance ofProblemFilters
.static ProblemSettings
Returns an instance ofProblemSettings
.static ScopeSelectionManager
Returns an instance ofScopeSelectionManager
.static ISuppressSettingsManager
GetsISuppressSettingsManager
service referencestatic IWorkspaceOrchestrator
Returns an instance ofIWorkspaceOrchestrator
.static void
log
(org.eclipse.core.runtime.IStatus status) Logs the status to eclipse logstatic void
Logs the error message to eclipse log.static void
Logs the error message to eclipse log.static void
Logs the given exception as error to eclipse log.static void
Logs the info message to eclipse log.static void
logWarning
(String message) Logs the warning message to eclipse log.void
start
(org.osgi.framework.BundleContext context) void
stop
(org.osgi.framework.BundleContext context) 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, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
-
Constructor Details
-
V8UiValidationPlugin
public V8UiValidationPlugin()
-
-
Method Details
-
getDefault
Returns the shared instance- Returns:
- the shared instance
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
getMarkerManager
Returns an instance ofIMarkerManagerV2
.- Returns:
- an instance of
IMarkerManagerV2
. Nevernull
.
-
getCheckRepo
Returns an instance ofICheckRepository
.- Returns:
- an instance of
ICheckRepository
. Nevernull
.
-
getFixManager
Returns an instance ofIFixManager
.- Returns:
- an instance of
IFixManager
. Nevernull
.
-
getFixRepo
Returns an instance ofIFixRepository
.- Returns:
- an instance of
IFixRepository
. Nevernull
.
-
getScopeSelectionManager
Returns an instance ofScopeSelectionManager
.- Returns:
- an instance of
ScopeSelectionManager
. Nevernull
.
-
getWorkSpaceOrchestrator
Returns an instance ofIWorkspaceOrchestrator
.- Returns:
- an instance of
IWorkspaceOrchestrator
. Nevernull
.
-
getDtProjectManager
Returns an instance ofIDtProjectManager
.- Returns:
- an instance of
IDtProjectManager
. Nevernull
.
-
getProblemSettings
Returns an instance ofProblemSettings
.- Returns:
- an instance of
ProblemSettings
. Nevernull
. This instance is already loaded, no need to callAbstractSetting.load()
.
-
getProblemFilters
Returns an instance ofProblemFilters
.- Returns:
- an instance of
ProblemFilters
. Nevernull
. This instance is already loaded, no need to callAbstractSetting.load()
.
-
getDerivedDataManagerProvider
GetsIDerivedDataManagerProvider
service reference- Returns:
IDerivedDataManagerProvider
service reference. Cannot benull
-
getBmModelManager
GetsIBmModelManager
service reference- Returns:
IBmModelManager
service reference. Cannot benull
-
getSuppressSettingsManager
GetsISuppressSettingsManager
service reference- Returns:
ISuppressSettingsManager
service reference. Cannot benull
-
getBslCheckSuppressor
GetsBslCheckSuppressor
service reference- Returns:
BslCheckSuppressor
service reference. Cannot benull
-
getEditorOpener
public static org.eclipse.xtext.ui.editor.IURIEditorOpener getEditorOpener()GetsIURIEditorOpener
service reference- Returns:
IURIEditorOpener
service reference. Cannot benull
-
getFilterBySubsystemsManager
GetsIFilterBySubsystemsManager
service reference- Returns:
IFilterBySubsystemsManager
service reference. Cannot benull
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
getInjector
public com.google.inject.Injector getInjector()Returns Guice injector for this plugin.- Returns:
- Guice injector for this plugin, never
null
-
log
public static void log(org.eclipse.core.runtime.IStatus status) Logs the status to eclipse log- Parameters:
status
- status with message
-
logError
Logs the error message to eclipse log.- Parameters:
message
- message, cannot benull
-
logWarning
Logs the warning message to eclipse log.- Parameters:
message
- message, cannot benull
-
logInfo
Logs the info message to eclipse log.- Parameters:
message
- message, cannot benull
-
logError
Logs the error message to eclipse log.- Parameters:
message
- message, cannot benull
.e
- exception to log, may benull
.
-
logError
Logs the given exception as error to eclipse log.- Parameters:
e
- exception to log, cannot benull
.
-
createErrorStatus
Create new error status with message- Parameters:
message
-String
throwable
-- Returns:
- new instance of
Status
-