Browse Source

Merge pull request #754 in DESIGN/design from ~YAOH.WU/design:release/10.0 to release/10.0

* commit '6e820041bf860af97dba0f256570ba6a88ec0c06':
  REPORT-14515 环境切换后模板另存面板没有刷新
bugfix/10.0
yaoh.wu 6 years ago
parent
commit
84bb219616
  1. 6
      designer-base/src/main/java/com/fr/design/file/HistoryTemplateListCache.java

6
designer-base/src/main/java/com/fr/design/file/HistoryTemplateListCache.java

@ -372,6 +372,12 @@ public class HistoryTemplateListCache implements CallbackEvent {
JTemplate<?, ?> template = JTemplateFactory.createJTemplate(stashedFile);
if (template != null) {
historyList.set(i, template);
// 替换当前正在编辑的模板,使用添加并激活的方式,以便使用统一的入口来处理监听事件
if (isCurrentEditingFile(template.getPath())) {
DesignerContext.getDesignerFrame().addAndActivateJTemplate(template);
setCurrentEditingTemplate(template);
FineLoggerFactory.getLogger().info("Env Change Current Editing Template.");
}
}
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);

Loading…
Cancel
Save