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 TypeMethodDescriptionvoiddispose()protected voidfillSpecficMarkerProperties(Object objectId, Object sourceObjectId, Issue issue, Marker marker) protected Stringvoidinit()voidonProjectStart(ProjectContext projectContext) voidonProjectStop(ProjectContext projectContext) voidvalidateLanguage(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 checksvoidvalidateModel(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 benullresourceLookup- the resource lookup, cannot benullmarkerManager- the marker manager, cannot benullderivedDataManagerProvider- the DD manager provider, cannot benullbmModelManager- the BM model manager, cannot benullsuppressManager- 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:ICheckExecutorValidates the language model object with a given set of the checks- Specified by:
validateLanguagein interfaceICheckExecutor- Parameters:
object- The language model object to validate. May not benullcheckIds- The set of check identifier to perform on this object. May not benulldiagnosticChain- The language diagnostic chaing to accept found issues. May not benullcontextCollector- Collects contexts of checks. Cannot benullprogressMonitor- 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:ICheckExecutorValidates the model object with a given set of the checks- Specified by:
validateModelin interfaceICheckExecutor- Parameters:
object- The model object to validate. May not benullcheckIds- The set of check identifier to perform on this object. May not benullcontextCollector- Collects contexts of checks. Cannot benullmarkerUpdateBatch- the markers' batch. SeeMarkerUpdateBatchfor more info. Cannot benull.progressMonitor- The progress monitor for the operative management of long-running checks. May not benull
-
fillSpecficMarkerProperties
-
getSource
-