Class ScopedTranslationProvider
java.lang.Object
com.e1c.langtool.internal.history.provider.BaseTranslationProvider
com.e1c.langtool.internal.history.scope.ScopedTranslationProvider
- All Implemented Interfaces:
IScopedTranslationProvider
public class ScopedTranslationProvider
extends BaseTranslationProvider
implements IScopedTranslationProvider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.e1c.langtool.internal.history.provider.BaseTranslationProvider
BaseTranslationProvider.TranslationResultNested classes/interfaces inherited from interface com.e1c.langtool.history.provider.IScopedTranslationProvider
IScopedTranslationProvider.IScopedTranslationResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontranslate(IContextTranslationQuery contextQuery) Returns a translation results have been found by the given query and filtered by the specified query scope.Methods inherited from class com.e1c.langtool.internal.history.provider.BaseTranslationProvider
getMaxResultsNumber, translate
-
Constructor Details
-
ScopedTranslationProvider
-
-
Method Details
-
translate
public List<IScopedTranslationProvider.IScopedTranslationResult> translate(IContextTranslationQuery contextQuery) Description copied from interface:IScopedTranslationProviderReturns a translation results have been found by the given query and filtered by the specified query scope.The implementators must provide that the size of returned list must be limited by the following preferences parameter
HistoryTransPrefs.getMaxTranslations().- Specified by:
translatein interfaceIScopedTranslationProvider- Parameters:
contextQuery- the query to search translations- Returns:
- a list of translations
-