Package com.e1c.g5.v8.dt.check.settings
Interface ISuppressSettingsManager
- All Superinterfaces:
IManagedService
Suppress settings manager is responsible for answering the question about check suppressions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ISuppressSettingsChangeListener listener) Adds the specifiedISuppressSettingsChangeListener
void
addSuppression
(IBmObject target, CheckUid checkUid) Adds a suppression of the given check for a specified model objectexcludeSuppressedCheckIds
(org.eclipse.emf.ecore.EObject source, org.eclipse.core.resources.IProject project, Set<String> checkIds, IBslElementRegionProvider bslElementRegionProvider) Excludes suppressed check ids from set of given check ids.void
Finalizes the suppression sessionboolean
isSuppressed
(Object object, String checkId, String checkContributor) Answers to the question whether the particular check is suppressed for selected object.Creates and registers a new suppression sessionvoid
Removes the specified listener.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
isSuppressed
Answers to the question whether the particular check is suppressed for selected object.- Parameters:
object
- object to be examinedcheckId
- check identifier- Returns:
true
if the check is suppressed.
-
excludeSuppressedCheckIds
Set<String> excludeSuppressedCheckIds(org.eclipse.emf.ecore.EObject source, org.eclipse.core.resources.IProject project, Set<String> checkIds, IBslElementRegionProvider bslElementRegionProvider) Excludes suppressed check ids from set of given check ids.- Parameters:
source
- the object being validated, cannot benull
project
- the project, can benull
checkIds
- , the original set of check ids, cannot benull
bslElementRegionProvider
- , theIBslElementRegionProvider
, cannot benull
- Returns:
- the updated set of check ids w/o suppressions, never
null
-
addSuppression
Adds a suppression of the given check for a specified model object- Parameters:
target
- The target object. May not benull
checkUid
- The identifier of the check to suppress. May not benull
-
prepareSuppressionSession
SuppressionSessionHandle prepareSuppressionSession()Creates and registers a new suppression session- Returns:
SuppressionSessionHandle
, nevernull
-
finishSuppressionSession
Finalizes the suppression session- Parameters:
handle
- the suppression session handle, cannot benull
-
addListener
Adds the specifiedISuppressSettingsChangeListener
- Parameters:
listener
- the listener to add, cannot benull
.- See Also:
-
removeListener
Removes the specified listener.- Parameters:
listener
- the listener to remove, cannot benull
.- See Also:
-