Package com.e1c.g5.v8.dt.internal.check
Class CheckExecutor
java.lang.Object
com.e1c.g5.v8.dt.internal.check.CheckExecutor
- All Implemented Interfaces:
ICheckExecutor
@LifecycleService(name="CHECK_EXECUTOR")
public class CheckExecutor
extends Object
implements ICheckExecutor
Check executor performs checks in a direct or a scheduled manner.
It's a part of internal ACC infrastructure.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.g5.v8.dt.internal.check.ICheckExecutor
ICheckExecutor.CheckContextCollector
-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.internal.check.ICheckExecutor
SERVICE_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionCheckExecutor
(ICheckRepository checkRepository, IResourceLookup resourceLookup, IMarkerManager markerManager, IDerivedDataManagerProvider derivedDataManagerProvider, IBmModelManager bmModelManager, ISuppressSettingsManager suppressManager, IDtProjectManager dtProjectManager, IModelEditingSupport modelEditingSupport) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
protected void
fillSpecficMarkerProperties
(Object objectId, Object sourceObjectId, Issue issue, Marker marker) protected String
void
init()
void
onProjectStart
(ProjectContext projectContext) void
onProjectStop
(ProjectContext projectContext) void
validateLanguage
(Object object, Set<String> checkIds, org.eclipse.emf.common.util.DiagnosticChain diagnosticChain, ICheckExecutor.CheckContextCollector contextCollector, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Validates the language model object with a given set of the checksvoid
validateModel
(Object object, Set<CheckUid> checkIds, ICheckExecutor.CheckContextCollector contextCollector, MarkerUpdateBatch markerUpdateBatch, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Validates the model object with a given set of the checks
-
Constructor Details
-
CheckExecutor
@Inject public CheckExecutor(ICheckRepository checkRepository, IResourceLookup resourceLookup, IMarkerManager markerManager, IDerivedDataManagerProvider derivedDataManagerProvider, IBmModelManager bmModelManager, ISuppressSettingsManager suppressManager, IDtProjectManager dtProjectManager, IModelEditingSupport modelEditingSupport) Creates new instance.- Parameters:
checkRepository
- the check repository, cannot benull
resourceLookup
- the resource lookup, cannot benull
markerManager
- the marker manager, cannot benull
derivedDataManagerProvider
- the DD manager provider, cannot benull
bmModelManager
- the BM model manager, cannot benull
suppressManager
- the suppression settings manager (seeISuppressSettingsManager
), cannot benull
-
-
Method Details
-
dispose
-
init
-
onProjectStart
@LifecycleParticipant(phase=INITIALIZATION, dependsOn="CHECK_REPOSITORY") public void onProjectStart(ProjectContext projectContext) -
onProjectStop
@LifecycleParticipant(phase=DISPOSING, dependsOn="CHECK_REPOSITORY") public void onProjectStop(ProjectContext projectContext) -
validateLanguage
public void validateLanguage(Object object, Set<String> checkIds, org.eclipse.emf.common.util.DiagnosticChain diagnosticChain, ICheckExecutor.CheckContextCollector contextCollector, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:ICheckExecutor
Validates the language model object with a given set of the checks- Specified by:
validateLanguage
in interfaceICheckExecutor
- Parameters:
object
- The language model object to validate. May not benull
checkIds
- The set of check identifier to perform on this object. May not benull
diagnosticChain
- The language diagnostic chaing to accept found issues. May not benull
contextCollector
- Collects contexts of checks. Cannot benull
progressMonitor
- The progress monitor for the operative management of long-running checks. May not benull
-
validateModel
public void validateModel(Object object, Set<CheckUid> checkIds, ICheckExecutor.CheckContextCollector contextCollector, MarkerUpdateBatch markerUpdateBatch, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:ICheckExecutor
Validates the model object with a given set of the checks- Specified by:
validateModel
in interfaceICheckExecutor
- Parameters:
object
- The model object to validate. May not benull
checkIds
- The set of check identifier to perform on this object. May not benull
contextCollector
- Collects contexts of checks. Cannot benull
markerUpdateBatch
- the markers' batch. SeeMarkerUpdateBatch
for more info. Cannot benull
.progressMonitor
- The progress monitor for the operative management of long-running checks. May not benull
-
fillSpecficMarkerProperties
-
getSource
-