Browse Source

REPORT-55243:删除错误注释,修改不合理代码

research/11.0
fly.li 3 years ago
parent
commit
07c83f08b8
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

5
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

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

Loading…
Cancel
Save