|
|
@ -1475,7 +1475,6 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getSuffix() { |
|
|
|
private String getSuffix() { |
|
|
|
//这里需要重写getPath(),getPath()方法中,使用到了getSuffix()方法
|
|
|
|
|
|
|
|
CptxMetadata metadata = CptxFileUtils.getMetadata(this.getEditingFILE().getPath()); |
|
|
|
CptxMetadata metadata = CptxFileUtils.getMetadata(this.getEditingFILE().getPath()); |
|
|
|
if (metadata != null && metadata.isForceCpt()) { |
|
|
|
if (metadata != null && metadata.isForceCpt()) { |
|
|
|
//返回分页引擎未生效
|
|
|
|
//返回分页引擎未生效
|
|
|
@ -1620,13 +1619,13 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
if (isChangedFile){ |
|
|
|
if (isChangedFile){ |
|
|
|
callBackForSave(); |
|
|
|
callBackForSave(); |
|
|
|
CptCompileUtil.compile(JTemplate.this); |
|
|
|
CptCompileUtil.compile(JTemplate.this); |
|
|
|
|
|
|
|
} else{ |
|
|
|
|
|
|
|
callBackForSave(); |
|
|
|
} |
|
|
|
} |
|
|
|
callBackForSave(); |
|
|
|
|
|
|
|
// 当前打开的是正在保存的模板才刷新
|
|
|
|
// 当前打开的是正在保存的模板才刷新
|
|
|
|
if (ComparatorUtils.equals(JTemplate.this.template.getTemplateID(), |
|
|
|
if (ComparatorUtils.equals(JTemplate.this.template.getTemplateID(), |
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().template.getTemplateID())) { |
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().template.getTemplateID())) { |
|
|
|
refreshToolArea(); |
|
|
|
refreshToolArea(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
} |
|
|
|
} |
|
|
|