Class PrunedDynamicFeatureAccessTranslationAmbiguityValidator
java.lang.Object
com.e1c.g5.v8.dt.check.components.BasicCheck
com.e1c.langtool.v8.dt.bsl.validation.AbstractTranslationAmbiguityValidator
com.e1c.langtool.v8.dt.bsl.validation.AbstractDynamicFeatureAccessTranslationAmbiguityValidator
com.e1c.langtool.v8.dt.bsl.validation.PrunedDynamicFeatureAccessTranslationAmbiguityValidator
- All Implemented Interfaces:
ITopObjectFilter,ICheck
public class PrunedDynamicFeatureAccessTranslationAmbiguityValidator
extends AbstractDynamicFeatureAccessTranslationAmbiguityValidator
The extension of
AbstractDynamicFeatureAccessTranslationAmbiguityValidator for non translating projects.-
Nested Class Summary
Nested classes/interfaces inherited from class com.e1c.g5.v8.dt.check.components.BasicCheck
BasicCheck.CheckConfigurer, BasicCheck.CheckParameterBuilder, BasicCheck.ContainmentConfigurationBuilder, BasicCheck.DelegateCheckConfigurationBuilder, BasicCheck.ModuleConfigurationBuilder, BasicCheck.ResultAcceptor, BasicCheck.TopObjectConfigurationBuilder, BasicCheck.TopObjectFeatureConfigurationBuilder -
Field Summary
FieldsFields inherited from class com.e1c.langtool.v8.dt.bsl.validation.AbstractDynamicFeatureAccessTranslationAmbiguityValidator
DEFAULT_TYPES_SKIP_PROPERTIES, EXCLUDE_NAME_PATTERN_PARAMETERN_NAME, TYPES_SKIP_PROPERTIES_PARAMETERN_NAMEFields inherited from class com.e1c.langtool.v8.dt.bsl.validation.AbstractTranslationAmbiguityValidator
featureKeyProvider, projectManager, resourceLookup, v8ProjectManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectDictionaryTranslations(ITranslatingProject project, DynamicFeatureAccess featureAccess, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor) Collects the dictionary translations.protected voidconfigureCheck(BasicCheck.CheckConfigurer builder) The check is performed in case of changes of the tracjed object model/language module changes.Gets the unique identifier of the check.protected org.eclipse.emf.ecore.EStructuralFeatureprotected Stringprotected booleanneedValidation(org.eclipse.core.resources.IProject project) Methods inherited from class com.e1c.langtool.v8.dt.bsl.validation.AbstractDynamicFeatureAccessTranslationAmbiguityValidator
check, internalHasMultipleTranslationsMethods inherited from class com.e1c.langtool.v8.dt.bsl.validation.AbstractTranslationAmbiguityValidator
checkTranslationAmbiguity, getActualEnvs, getContextDefCache, getParameters, getReader, isDefaultLanguageChanged, isScriptVariantChangedMethods inherited from class com.e1c.g5.v8.dt.check.components.BasicCheck
check, check, configureContextCollector, isCheckApplicable, postConfigureContextCollectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.g5.v8.dt.check.ICheck
check, prepareContext, prepareContext
-
Field Details
-
CHECK_ID
The identifier of the check- See Also:
-
-
Constructor Details
-
PrunedDynamicFeatureAccessTranslationAmbiguityValidator
public PrunedDynamicFeatureAccessTranslationAmbiguityValidator()
-
-
Method Details
-
getCheckId
Description copied from interface:ICheckGets the unique identifier of the check. The identifier should be unique. The system performs automated identifier conflict resolution in case of non-unique identifiers, with addition of conflict-resolving symbols to the identifier- Returns:
- The identifier of the check. May not be
null
-
configureCheck
Description copied from class:BasicCheckThe check is performed in case of changes of the tracjed object model/language module changes. In order to define the rules of the check performing, the developer should define the set ofEClass'es and their features those changes are being tracked/or be targets of the validation- Specified by:
configureCheckin classBasicCheck
-
needValidation
protected boolean needValidation(org.eclipse.core.resources.IProject project) - Overrides:
needValidationin classAbstractTranslationAmbiguityValidator
-
getMessageFeature
protected org.eclipse.emf.ecore.EStructuralFeature getMessageFeature()- Specified by:
getMessageFeaturein classAbstractTranslationAmbiguityValidator
-
getMessageTemplate
- Specified by:
getMessageTemplatein classAbstractTranslationAmbiguityValidator
-
collectDictionaryTranslations
protected Set<String> collectDictionaryTranslations(ITranslatingProject project, DynamicFeatureAccess featureAccess, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from class:AbstractDynamicFeatureAccessTranslationAmbiguityValidatorCollects the dictionary translations.- Overrides:
collectDictionaryTranslationsin classAbstractDynamicFeatureAccessTranslationAmbiguityValidator- Parameters:
project- the translating project, cannot benullfeatureAccess- the dynamic feature access to get translations for, cannot benullparameters- the set of check execution parameters taken from check settings, cannot benullmonitor- the check progress monitor, cannot benull- Returns:
- the dictionary translations, never
null
-