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 Type
    Method
    Description
    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.
    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.
    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.
    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.
  • 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 be null.
      source - the source object, cannot be null.
      monitor - the monitor, cannot be null.
      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 be null.
      source - the source object, cannot be null.
      featureKey - the feature key, cannot be null.
      monitor - the monitor, cannot be null.
      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 be null.
      source - the source context translation key, cannot be null.
      monitor - the monitor, cannot be null.
      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 be null.
      resourceId - the resource id, the project relative path to resource, cannot be null.
      featureKey - the feature key, cannot be null.
      monitor - the monitor, cannot be null.
      Returns:
      true, if should to ignore translation of the source