Class SelectableTextCellEditor.ApplicableTranslationQuery
java.lang.Object
com.e1c.langtool.internal.ui.view.SelectableTextCellEditor.ApplicableTranslationQuery
- All Implemented Interfaces:
IApplicable,IContextTranslationQuery,ISingleTranslationQuery
- Enclosing class:
- SelectableTextCellEditor
protected class SelectableTextCellEditor.ApplicableTranslationQuery
extends Object
implements IContextTranslationQuery, IApplicable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies a translation value.Returns theFeatureValue.Returns the name of project for which the translations will be searched.Returns the translation storage id.getText()Returns the text to translate.boolean
-
Constructor Details
-
ApplicableTranslationQuery
protected ApplicableTranslationQuery()
-
-
Method Details
-
getText
Description copied from interface:ISingleTranslationQueryReturns the text to translate.- Specified by:
getTextin interfaceISingleTranslationQuery- Returns:
- the text to translate. Can't be
null.
-
getSourceLanguage
-
getTargetLanguage
-
isProcessingNeeded
public boolean isProcessingNeeded() -
apply
Description copied from interface:IApplicableApplies a translation value.- Specified by:
applyin interfaceIApplicable- Parameters:
translation- an applicable translation value
-
getFeatureValue
Description copied from interface:IContextTranslationQueryReturns theFeatureValue.Note that following methods of
FeatureValueandISingleTranslationQueryshould return the same values:FeatureValue.getValue()andISingleTranslationQuery.getText()FeatureValue.getFeatureSettings().isLocalizable()andisProcessingNeeded()
- Specified by:
getFeatureValuein interfaceIContextTranslationQuery- Returns:
- the
FeatureValue
-
getStorageId
Description copied from interface:IContextTranslationQueryReturns the translation storage id.- Specified by:
getStorageIdin interfaceIContextTranslationQuery- Returns:
- the storage id
-
getProjectName
Description copied from interface:IContextTranslationQueryReturns the name of project for which the translations will be searched.- Specified by:
getProjectNamein interfaceIContextTranslationQuery- Returns:
- the name of project
- See Also:
-
IResource.getName()
-