Class UserFieldExpressionPresentationTranslationProvider
java.lang.Object
com.e1c.langtool.v8.dt.dcs.translator.UserFieldExpressionPresentationTranslationProvider
- All Implemented Interfaces:
IComputedNameProvider,IComputedStringFeatureProvider,IComputedStringFeatureTranslationProvider
public class UserFieldExpressionPresentationTranslationProvider
extends Object
implements IComputedStringFeatureTranslationProvider
The presentation of detail and total expressions are always set the same as the expression as it does EDT UI editor
of
DataCompositionUserFieldExpression and it is different form Designer UI editor.-
Constructor Summary
ConstructorsConstructorDescriptionUserFieldExpressionPresentationTranslationProvider(IComputedNameTranslationService computedNameTranslationService) -
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
-
UserFieldExpressionPresentationTranslationProvider
@Inject public UserFieldExpressionPresentationTranslationProvider(IComputedNameTranslationService computedNameTranslationService)
-
-
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
-