Package com.e1c.langtool.v8.dt.collector
Class CollectingContext
java.lang.Object
com.e1c.langtool.v8.dt.collector.CollectingContext
Help class of collecting context that pass to
FeaturesCollectorUtil and it packs inside all needed
services and parameters for collecting.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectingContext(ICollectingParameters parameters, IFeatureValueCollectingService collectingService, IFeatureSettingsService settingsService, ITranslationFeatureKeyProvider featureKeyProvider, IComputedNameService computedNameService, String defaultLanguageCode, BiConsumer<Object, FeatureValue> addAction) CollectingContext(ICollectingParameters parameters, IFeatureValueCollectingService collectingService, IFeatureSettingsService settingsService, ITranslationFeatureKeyProvider featureKeyProvider, IComputedNameService computedNameService, String defaultLanguageCode, BiConsumer<Object, FeatureValue> addAction, org.eclipse.core.resources.IFile resourceFile) -
Method Summary
Modifier and TypeMethodDescriptionGets the add action.Gets the collecting service.Gets the computed name service.Gets the default language code.Gets the feature key provider.Gets the parameters.org.eclipse.core.resources.IFileGets the resource file of current context.Gets the settings service.
-
Constructor Details
-
CollectingContext
public CollectingContext(ICollectingParameters parameters, IFeatureValueCollectingService collectingService, IFeatureSettingsService settingsService, ITranslationFeatureKeyProvider featureKeyProvider, IComputedNameService computedNameService, String defaultLanguageCode, BiConsumer<Object, FeatureValue> addAction) -
CollectingContext
public CollectingContext(ICollectingParameters parameters, IFeatureValueCollectingService collectingService, IFeatureSettingsService settingsService, ITranslationFeatureKeyProvider featureKeyProvider, IComputedNameService computedNameService, String defaultLanguageCode, BiConsumer<Object, FeatureValue> addAction, org.eclipse.core.resources.IFile resourceFile)
-
-
Method Details
-
getParameters
Gets the parameters.- Returns:
- the parameters
-
getCollectingService
Gets the collecting service.- Returns:
- the collecting service
-
getSettingsService
Gets the settings service.- Returns:
- the settings service
-
getFeatureKeyProvider
Gets the feature key provider.- Returns:
- the feature key provider
-
getComputedNameService
Gets the computed name service.- Returns:
- the computed name service
-
getDefaultLanguageCode
Gets the default language code.- Returns:
- the default language code
-
getAddAction
Gets the add action.- Returns:
- the adds the action
-
getResourceFile
public org.eclipse.core.resources.IFile getResourceFile()Gets the resource file of current context.- Returns:
- the resource file, may return
nullif context file not provided and should be calculated from URI.
-