Interface TranslationSource

All Known Implementing Classes:
MoxelPropertiesTranslationSource, QuerySchemaTranslationSource, ResourceTranslationSource, RestrictionTranslationSource, RootTemplateTranslationSource, V8EmfTranslationSource

public interface TranslationSource
Common interface for object that is source of translation strings.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant of content type ID for translation source files
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the id of this translation source.
    org.eclipse.core.resources.IProject
    Gets the project of translation source object.
    @Nullable org.eclipse.core.runtime.IPath
    Gets the project relative path of the source.
    Gets the source object with can scan for strings.
  • Field Details

    • CONTENT_TYPE_ID

      static final String CONTENT_TYPE_ID
      The Constant of content type ID for translation source files
      See Also:
  • Method Details

    • getProject

      org.eclipse.core.resources.IProject getProject()
      Gets the project of translation source object.
      Returns:
      the project
    • getProjectRelativePath

      @Nullable org.eclipse.core.runtime.IPath getProjectRelativePath()
      Gets the project relative path of the source.
      Returns:
      the project relative path
    • getSourceObject

      Object getSourceObject()
      Gets the source object with can scan for strings.
      Returns:
      the source object
    • getId

      String getId()
      Gets the id of this translation source. It must be unique in project scope and free of project name in preffix that is mean id is project related.
      Returns:
      the id