Package com.e1c.langtool.ignore
Interface IgnoreTranslationChecker
- All Known Implementing Classes:
AbstractResourceIgnoreTranslationChecker,ResourceIgnoreTranslationChecker,SubsystemIgnoreTranslationChecker
public interface IgnoreTranslationChecker
The Interface of checkers to provider capability to ignore objects from translation and collecting
features for translation.
The implementation must to be thread-safe, must react on project life-cycle and resource changing.
If any caching system exist in the checker it must be loyal to the memory it used and free up when it
is possible.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanignoreTranslation(org.eclipse.core.resources.IProject project, ContextTranslationKey source, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by the feature value which contains resource id as path and feature key to check.default booleanignoreTranslation(org.eclipse.core.resources.IProject project, TranslationSource source, FeatureKey featureKey, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by the feature key in the source object.default booleanignoreTranslation(org.eclipse.core.resources.IProject project, TranslationSource source, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by translation source, usually by the project relative path.default booleanignoreTranslation(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath resourceId, FeatureKey featureKey, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by resource path and feature key in this resource.
-
Method Details
-
ignoreTranslation
default boolean ignoreTranslation(org.eclipse.core.resources.IProject project, TranslationSource source, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by translation source, usually by the project relative path.- Parameters:
project- the project, cannot benull.source- the source object, cannot benull.monitor- the monitor, cannot benull.- Returns:
- true, if should to ignore translation of the source
-
ignoreTranslation
default boolean ignoreTranslation(org.eclipse.core.resources.IProject project, TranslationSource source, FeatureKey featureKey, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by the feature key in the source object.- Parameters:
project- the project, cannot benull.source- the source object, cannot benull.featureKey- the feature key, cannot benull.monitor- the monitor, cannot benull.- Returns:
- true, if should to ignore translation of the source
-
ignoreTranslation
default boolean ignoreTranslation(org.eclipse.core.resources.IProject project, ContextTranslationKey source, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by the feature value which contains resource id as path and feature key to check.- Parameters:
project- the project, cannot benull.source- the source context translation key, cannot benull.monitor- the monitor, cannot benull.- Returns:
- true, if should to ignore translation of the source
-
ignoreTranslation
default boolean ignoreTranslation(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath resourceId, FeatureKey featureKey, org.eclipse.core.runtime.IProgressMonitor monitor) Ignore translation by resource path and feature key in this resource.- Parameters:
project- the project, cannot benull.resourceId- the resource id, the project relative path to resource, cannot benull.featureKey- the feature key, cannot benull.monitor- the monitor, cannot benull.- Returns:
- true, if should to ignore translation of the source
-