|
|
|
@ -113,12 +113,14 @@ public class SaveFailureHandler implements ThrowableHandler {
|
|
|
|
|
new Object[] {Toolkit.i18nText("Fine_Design_Template_SaveAs_Backup"), Toolkit.i18nText("Fine-Design_Basic_Button_Cancel")}, null); |
|
|
|
|
if (option == JOptionPane.YES_OPTION) { |
|
|
|
|
JTemplate<?, ?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (template != null) { |
|
|
|
|
if (JTemplate.isValid(template)) { |
|
|
|
|
TemplateUtils.createAndOpenTemplate( |
|
|
|
|
Toolkit.i18nText("Fine_Design_Template_Backup"), |
|
|
|
|
new FileNodeFILE(new FileNode(template.getPath(), false)), |
|
|
|
|
true, |
|
|
|
|
false); |
|
|
|
|
true, |
|
|
|
|
// 创建并打开备份模板后,关闭原模板,无需释放原模板锁(锁定信息不一致 = 此用户模板锁信息已被清除)
|
|
|
|
|
() -> HistoryTemplateListCache.getInstance().closeSelectedReport(template)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|