Class V8FileNameConverter
java.lang.Object
com.e1c.langtool.v8.dt.resourcestorage.AbstractV8FileNameConverter
com.e1c.langtool.v8.dt.resourcestorage.V8FileNameConverter
- All Implemented Interfaces:
IV8FileNameConverter
The Class V8FileNameConverter main converter to context translation files.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.e1c.langtool.v8.dt.resourcestorage.AbstractV8FileNameConverter
AbstractV8FileNameConverter.FileName -
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.resourcestorage.AbstractV8FileNameConverter
FILE_EXTENSION_DICT, FILE_EXTENSION_LSDICT, FILE_EXTENSION_LSTR, FILE_EXTENSION_NSTR, FILE_EXTENSION_TRANS, FILE_NAME_SEGMENT_SPLITTER, SOURCE_FOLDER, translatingProjectManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetNameSegment(org.eclipse.core.runtime.IPath path) org.eclipse.core.runtime.IPathgetTranslationPath(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language) Gets the translation path.Set<org.eclipse.core.runtime.IPath>getV8Path(org.eclipse.core.runtime.IPath translationPath) Gets the v8 file path by the given translation file path.Methods inherited from class com.e1c.langtool.v8.dt.resourcestorage.AbstractV8FileNameConverter
getLanguage, getLanguage, getLanguageCode, getSegment, getSegment, getTranslationFile, getTranslationFile, getTranslationPath, getV8File, getV8File, getV8Path, hasRootFolder, isInterface, isInterface, isTranslation, isTranslation
-
Constructor Details
-
V8FileNameConverter
public V8FileNameConverter()
-
-
Method Details
-
getTranslationPath
public org.eclipse.core.runtime.IPath getTranslationPath(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language) Description copied from interface:IV8FileNameConverterGets the translation path.- Parameters:
v8Path- the v8 path, cannot benull.isLocalizable- the is localizablelanguage- the language, cannot benull.- Returns:
- the translation path. It can return
nullwhen it's impossible to get a path to translation file from the given path.
-
getV8Path
public Set<org.eclipse.core.runtime.IPath> getV8Path(org.eclipse.core.runtime.IPath translationPath) Description copied from interface:IV8FileNameConverterGets the v8 file path by the given translation file path. Caller could not to check that given file path is translation file.- Specified by:
getV8Pathin interfaceIV8FileNameConverter- Overrides:
getV8Pathin classAbstractV8FileNameConverter- Parameters:
translationPath- the translation path- Returns:
- all possible v8 files converted from translation file. Can return
nullor emptySet.
-
getNameSegment
-