|
|
@ -1465,10 +1465,8 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
editingFILE = fileChooser.getSelectedFILE(); |
|
|
|
editingFILE = fileChooser.getSelectedFILE(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 在保存之前,初始化 templateID
|
|
|
|
//收集和生成templateID 因为是另存为操作 无论怎么样都需要重新生成templateID
|
|
|
|
if (StringUtils.isEmpty(this.template.getTemplateID())) { |
|
|
|
initForCollect(); |
|
|
|
generateTemplateId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FILE finalEditingFILE = editingFILE; |
|
|
|
FILE finalEditingFILE = editingFILE; |
|
|
|
CallbackSaveWorker worker = new CallbackSaveWorker(new Callable<Boolean>() { |
|
|
|
CallbackSaveWorker worker = new CallbackSaveWorker(new Callable<Boolean>() { |
|
|
|