|
|
|
@ -3,6 +3,7 @@ package com.fr.design.utils;
|
|
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
|
import com.fr.base.io.BaseBook; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.file.TemplateTreePane; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
@ -103,6 +104,8 @@ public class TemplateUtils {
|
|
|
|
|
if (needOpen) { |
|
|
|
|
DesignerContext.getDesignerFrame().openTemplate(file); |
|
|
|
|
} |
|
|
|
|
// 备份成功刷新下目录树 展示出来备份的模板
|
|
|
|
|
TemplateTreePane.getInstance().refresh(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
SaveFailureHandler.getInstance().process(e); |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|