Class HierarchialTranslationTable.PropBasedExportTask
java.lang.Object
com.inductiveautomation.ignition.designer.i18n.workspace.HierarchialTranslationTable.AbstractExportTask
com.inductiveautomation.ignition.designer.i18n.workspace.HierarchialTranslationTable.PropBasedExportTask
- All Implemented Interfaces:
AsyncClientTask
- Enclosing class:
- HierarchialTranslationTable
protected static class HierarchialTranslationTable.PropBasedExportTask
extends HierarchialTranslationTable.AbstractExportTask
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.designer.i18n.workspace.HierarchialTranslationTable.AbstractExportTask
keys, locales, pkg
-
Constructor Summary
ConstructorsConstructorDescriptionPropBasedExportTask
(String baseDir, String baseFileName, List<Locale> locales, String mode, Collection<String> keys, TranslationPackage pkg) The paths should be one to one with the locales they represent. -
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
void
run
(TaskProgressListener progressListener) The "work" function.boolean
This gives the task a chance to check things and ask questions, like "overwrite?".Methods inherited from class com.inductiveautomation.ignition.designer.i18n.workspace.HierarchialTranslationTable.AbstractExportTask
canCancel, getTaskTitle, onComplete
-
Constructor Details
-
PropBasedExportTask
public PropBasedExportTask(String baseDir, String baseFileName, List<Locale> locales, String mode, Collection<String> keys, TranslationPackage pkg) The paths should be one to one with the locales they represent. *
-
-
Method Details
-
validateExport
public boolean validateExport()Description copied from class:HierarchialTranslationTable.AbstractExportTask
This gives the task a chance to check things and ask questions, like "overwrite?". If false is returned, export will be canceled.- Overrides:
validateExport
in classHierarchialTranslationTable.AbstractExportTask
-
buildFor
-
run
Description copied from interface:AsyncClientTask
The "work" function. Should update the progressListener of status, and check whether the operation has been canceled, if applicable. Should throw an exception on failure.- Throws:
Exception
-