Package com.e1c.langtool
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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant of content type ID for translation source files -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the id of this translation source.org.eclipse.core.resources.IProjectGets the project of translation source object.@Nullable org.eclipse.core.runtime.IPathGets the project relative path of the source.Gets the source object with can scan for strings.
-
Field Details
-
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
-