Interface MTImportCallback
public interface MTImportCallback
Callback when performing a "silent" MT import.
-
Method Summary
Modifier and TypeMethodDescriptionconflict(MTMerger merger, Class<T> type, MergeDifferences<T> differences) A conflict was encountered.default <T> voidentityCreated(Class<T> type, T entity) An entity was created.voidCallback used during the import.
-
Method Details
-
entityCreated
An entity was created.- Type Parameters:
T- The type of the entity.- Parameters:
type- The class of the entity.entity- The entity.
-
update
Callback used during the import. This can be used to update a progress bar.- Parameters:
message- The message to show for the current state.indeterminate- true if the current step is indeterminate, in which casepercentshould be ignored.percent- The percentage complete of the current step.
-
conflict
A conflict was encountered. The caller may choose one of the following- return MergeResult.ABORTED to abort the import at this stage.
- return MergeResult.SKIPPED to skip this entity.
- merge the differences manually and return MergeResult.MERGED to merge the entity.
- return the result of merger.showMergeUI to show the merge UI and let the user decide what to do.
- Type Parameters:
T- The type.- Parameters:
merger- The merger.type- The class.differences- The differences.- Returns:
- A merge result.
-