Class DesignTimeValueTranslationProvider
java.lang.Object
com.e1c.langtool.v8.dt.dcs.translator.DesignTimeValueTranslationProvider
- All Implemented Interfaces:
IComputedNameProvider,IComputedStringFeatureProvider,IComputedStringFeatureTranslationProvider
public class DesignTimeValueTranslationProvider
extends Object
implements IComputedStringFeatureTranslationProvider
The translation provider for
DesignTimeValue content that is predefined object serialized in string.
The provider tries to find real object and then provide translated string of serialization.-
Constructor Summary
ConstructorsConstructorDescriptionDesignTimeValueTranslationProvider(ITranslatedSymbolicNameService translatedSymbolicNameService) -
Method Summary
Modifier and TypeMethodDescriptioncomputeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Compute translated string from translations of base objects.booleanisComputedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature) Checks if the string in feature is computed string.booleanisSupported(org.eclipse.emf.ecore.EObject object) Checks if givenEObjectis supported by this provider.
-
Constructor Details
-
DesignTimeValueTranslationProvider
@Inject public DesignTimeValueTranslationProvider(ITranslatedSymbolicNameService translatedSymbolicNameService)
-
-
Method Details
-
isComputedString
public boolean isComputedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature) Description copied from interface:IComputedStringFeatureProviderChecks if the string in feature is computed string.- Specified by:
isComputedStringin interfaceIComputedStringFeatureProvider- Parameters:
object- the objectstringFeature- the string feature- Returns:
- true, if the string is computed
-
isSupported
public boolean isSupported(org.eclipse.emf.ecore.EObject object) Description copied from interface:IComputedNameProviderChecks if givenEObjectis supported by this provider.- Specified by:
isSupportedin interfaceIComputedNameProvider- Parameters:
object- the object- Returns:
- true, if it is supported
-
computeTranslatedString
public String computeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Description copied from interface:IComputedStringFeatureTranslationProviderCompute translated string from translations of base objects.- Specified by:
computeTranslatedStringin interfaceIComputedStringFeatureTranslationProvider- Parameters:
object- the objectstringFeature- the string featuretranslationProvider- the translation providerlanguage- the language- Returns:
- the computed string translated into given language
-