Package com.e1c.langtool.storage.regex
Class RegExDictionaryFileEditor
java.lang.Object
com.e1c.langtool.storage.regex.AbstractRegExtFileEditor<RegExDictionaryData>
com.e1c.langtool.storage.regex.RegExDictionaryFileEditor
- All Implemented Interfaces:
IFileEditor<RegExDictionaryData>
-
Field Summary
Fields inherited from class com.e1c.langtool.storage.regex.AbstractRegExtFileEditor
file -
Constructor Summary
ConstructorsConstructorDescriptionRegExDictionaryFileEditor(org.eclipse.core.resources.IFile file, org.eclipse.core.resources.IProject project, DictionaryStorageSettings settings, TranslateLanguage language, ITranslatingProjectManager translatingProjectManager, IStorageSettingsManager storageSettingsManager, ITranslationStorageManager translationStorageManager) -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets file model data.booleanisEmpty()Returnstrueif no translations stored in this file.voidload()Load from the resource file.byte[]save(com.google.common.hash.HashFunction hashFunction, org.eclipse.core.runtime.IProgressMonitor monitor) Store translations to the file.voidsave(org.eclipse.core.runtime.IProgressMonitor monitor) Store translations to the file.Methods inherited from class com.e1c.langtool.storage.regex.AbstractRegExtFileEditor
delete, getFile, isDirty, markDirty
-
Constructor Details
-
RegExDictionaryFileEditor
public RegExDictionaryFileEditor(org.eclipse.core.resources.IFile file, org.eclipse.core.resources.IProject project, DictionaryStorageSettings settings, TranslateLanguage language, ITranslatingProjectManager translatingProjectManager, IStorageSettingsManager storageSettingsManager, ITranslationStorageManager translationStorageManager)
-
-
Method Details
-
save
Description copied from interface:IFileEditorStore translations to the file.- Parameters:
monitor- the monitor- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
public byte[] save(com.google.common.hash.HashFunction hashFunction, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException Description copied from interface:IFileEditorStore translations to the file.monitor- the monitor- Throws:
IOException- Signals that an I/O exception has occurred.
-
isEmpty
public boolean isEmpty()Description copied from interface:IFileEditorReturnstrueif no translations stored in this file.- Returns:
trueif no translations stored in this file,falseotherwise.
-
load
public void load()Description copied from interface:IFileEditorLoad from the resource file. -
getData
Description copied from interface:IFileEditorGets file model data.- Returns:
- the file model data, cannot return
null.
-