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
Constructors Constructor Description PropBasedExportTask(java.lang.String baseDir, java.lang.String baseFileName, java.util.List<java.util.Locale> locales, java.lang.String mode, java.util.Collection<java.lang.String> keys, TranslationPackage pkg)
The paths should be one to one with the locales they represent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Properties
buildFor(java.util.Locale l)
void
run(TaskProgressListener progressListener)
The "work" function.boolean
validateExport()
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 Detail
-
PropBasedExportTask
public PropBasedExportTask(java.lang.String baseDir, java.lang.String baseFileName, java.util.List<java.util.Locale> locales, java.lang.String mode, java.util.Collection<java.lang.String> keys, TranslationPackage pkg)
The paths should be one to one with the locales they represent. *
-
-
Method Detail
-
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
protected java.util.Properties buildFor(java.util.Locale l)
-
run
public void run(TaskProgressListener progressListener) throws java.lang.Exception
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:
java.lang.Exception
-
-