Package com.e1c.langtool.v8.dt.form
Class FormBaseNamingProvider
java.lang.Object
com.e1c.langtool.v8.dt.form.FormBaseNamingProvider
- All Implemented Interfaces:
IComputedNameProvider,IComputedStringFeatureProvider,IComputedStringFeatureTranslationProvider
public class FormBaseNamingProvider
extends Object
implements IComputedStringFeatureTranslationProvider
The Class FormBaseNamingProvider.
Check whether the Form string value is computed or not.
Returns computed string from translations.
Usage example:
FormCommand.Action string
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcomputeTranslatedString(CommandHandler object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider) protected StringcomputeTranslatedString(EventHandler object, IProjectTranslationProvider translationProvider) protected StringcomputeTranslatedString(NamedElement object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider) protected StringcomputeTranslatedString(NamedElement object, IProjectTranslationProvider translationProvider) computeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Compute translated string if each segment has translationprotected booleanisComputedString(CommandHandler obj, EFeatureSettings stringFeature) protected booleanisComputedString(EventHandler object) protected booleanisComputedString(NamedElement object) protected booleanisComputedString(NamedElement object, String stringValue) 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
-
FormBaseNamingProvider
public FormBaseNamingProvider()
-
-
Method Details
-
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
-
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
-
computeTranslatedString
public String computeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Compute translated string if each segment has translation- Specified by:
computeTranslatedStringin interfaceIComputedStringFeatureTranslationProvider- Parameters:
object- the objectstringFeature- the string featuretranslationProvider- the translationProviderlanguage- the language- Returns:
- the string
-
isComputedString
-
isComputedString
-
isComputedString
-
isComputedString
-
computeTranslatedString
protected String computeTranslatedString(NamedElement object, IProjectTranslationProvider translationProvider) -
computeTranslatedString
protected String computeTranslatedString(NamedElement object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider) -
computeTranslatedString
protected String computeTranslatedString(EventHandler object, IProjectTranslationProvider translationProvider) -
computeTranslatedString
protected String computeTranslatedString(CommandHandler object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider)
-