Class AbstractTranslationAmbiguityValidator
java.lang.Object
com.e1c.g5.v8.dt.check.components.BasicCheck
com.e1c.langtool.v8.dt.bsl.validation.AbstractTranslationAmbiguityValidator
- All Implemented Interfaces:
ITopObjectFilter,ICheck
- Direct Known Subclasses:
AbstractDynamicFeatureAccessTranslationAmbiguityValidator,StringLiteralTranslationAmbiguityValidator
Base abstract class for ambiguous translation detecting validator.
-
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
FieldsModifier and TypeFieldDescriptionprotected ITranslationFeatureKeyProviderprotected ITranslatingProjectManagerprotected IResourceLookupprotected IV8ProjectManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckTranslationAmbiguity(org.eclipse.emf.ecore.EObject object, BasicCheck.ResultAcceptor resultAcceptor, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor) protected EnvironmentsgetActualEnvs(org.eclipse.emf.ecore.EObject object) protected ContextDefCachegetContextDefCache(org.eclipse.emf.ecore.EObject context, boolean isTranslatedToRussian) protected abstract org.eclipse.emf.ecore.EStructuralFeatureprotected abstract Stringprotected ICollectingParametersgetParameters(org.eclipse.core.resources.IProject project) protected IProjectTranslationReadergetReader(org.eclipse.core.resources.IProject project) protected abstract booleaninternalHasMultipleTranslations(org.eclipse.emf.ecore.EObject object, BasicCheck.ResultAcceptor resultAcceptor, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor, Map<String, Set<String>> translations, ITranslatingProject translatingProject, boolean isEnglishScript, Environmental environmental, Environments environments) protected booleanprotected booleanprotected booleanneedValidation(org.eclipse.core.resources.IProject project) Methods inherited from class com.e1c.g5.v8.dt.check.components.BasicCheck
check, check, check, configureCheck, 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, getCheckId, prepareContext, prepareContext
-
Field Details
-
resourceLookup
-
v8ProjectManager
-
projectManager
-
featureKeyProvider
-
-
Constructor Details
-
AbstractTranslationAmbiguityValidator
public AbstractTranslationAmbiguityValidator()
-
-
Method Details
-
getMessageTemplate
-
internalHasMultipleTranslations
protected abstract boolean internalHasMultipleTranslations(org.eclipse.emf.ecore.EObject object, BasicCheck.ResultAcceptor resultAcceptor, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor, Map<String, Set<String>> translations, ITranslatingProject translatingProject, boolean isEnglishScript, Environmental environmental, Environments environments) -
needValidation
protected boolean needValidation(org.eclipse.core.resources.IProject project) -
checkTranslationAmbiguity
protected void checkTranslationAmbiguity(org.eclipse.emf.ecore.EObject object, BasicCheck.ResultAcceptor resultAcceptor, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor) -
getParameters
-
getContextDefCache
protected ContextDefCache getContextDefCache(org.eclipse.emf.ecore.EObject context, boolean isTranslatedToRussian) -
getActualEnvs
-
isScriptVariantChanged
-
isDefaultLanguageChanged
-
getMessageFeature
protected abstract org.eclipse.emf.ecore.EStructuralFeature getMessageFeature() -
getReader
-