Package com.e1c.langtool.storage
Class TranslationStorageUtils
java.lang.Object
com.e1c.langtool.storage.TranslationStorageUtils
The common utilities for translation storages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.runtime.IPathgetContextFilePath(ContextStorageSettings settings, org.eclipse.core.runtime.IPath resourcePath, TranslateLanguage language) Gets the context translation file path for given source resource path (resource ID) and storage settings.static org.eclipse.core.runtime.IPathgetDictionaryFilePath(DictionaryStorageSettings settings, TranslateLanguage language) Gets the dictionary file path by settings.
-
Method Details
-
getDictionaryFilePath
public static org.eclipse.core.runtime.IPath getDictionaryFilePath(DictionaryStorageSettings settings, TranslateLanguage language) Gets the dictionary file path by settings.- Parameters:
settings- the settings, cannot benull.language- the language, cannot benull.- Returns:
- the dictionary file path, cannot return
null.
-
getContextFilePath
public static org.eclipse.core.runtime.IPath getContextFilePath(ContextStorageSettings settings, org.eclipse.core.runtime.IPath resourcePath, TranslateLanguage language) Gets the context translation file path for given source resource path (resource ID) and storage settings.- Parameters:
settings- the context storage settings, cannot benull.resourcePath- the source object resource path, cannot benull.language- the language, cannot benull.- Returns:
- the context translation file path, cannot return
null.
-