Class ComputerInterfacePlaces
java.lang.Object
com.e1c.langtool.internal.stat.computer.ComputerInterfacePlaces
- All Implemented Interfaces:
StatisticsComputer
Computer metrics showing the number of interface places to translate in the context of the resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeBaseValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys) Returns a value of this basic metric.computeTranslatedValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys, TranslateLanguage language) Returns a value of this metric for the language.Returns a description of metric.
-
Constructor Details
-
ComputerInterfacePlaces
public ComputerInterfacePlaces()
-
-
Method Details
-
getMetric
Description copied from interface:StatisticsComputerReturns a description of metric.- Specified by:
getMetricin interfaceStatisticsComputer- Returns:
- the metric, cannot return
null.
-
computeBaseValue
public int computeBaseValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys) Description copied from interface:StatisticsComputerReturns a value of this basic metric. Computes the count of source spaces to translate.- Specified by:
computeBaseValuein interfaceStatisticsComputer- Parameters:
project- the project, cannot benull.keys- the context translation key in the project, cannot benull.- Returns:
- value of the metric, cannot return
null.
-
computeTranslatedValue
public TranslationProgress computeTranslatedValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys, TranslateLanguage language) Description copied from interface:StatisticsComputerReturns a value of this metric for the language. Computes the count of translated spaces into the given language.- Specified by:
computeTranslatedValuein interfaceStatisticsComputer- Parameters:
project- the project, cannot benull.keys- the context translation key in the project, cannot benull.language- the language, cannot benull.- Returns:
- the translation statistics, cannot be
null.
-