Browse Source

REPORT-51409 打开模板加载失败后,点击重试,文件目录上方的工具栏都变得可操作了

feature/10.0
hades 4 years ago
parent
commit
c50b9a067b
  1. 3
      designer-base/src/main/java/com/fr/design/mainframe/OpenFailedPane.java

3
designer-base/src/main/java/com/fr/design/mainframe/OpenFailedPane.java

@ -74,9 +74,10 @@ public class OpenFailedPane extends JPanel {
if (e.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) {
// 重试
JTemplate<?, ?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
template.whenClose();
template = JTemplateFactory.createJTemplate(template.getEditingFILE());
HistoryTemplateListCache.getInstance().replaceCurrentEditingTemplate(template);
DesignerContext.getDesignerFrame().addAndActivateJTemplate(template);
HistoryTemplateListCache.getInstance(). setCurrentEditingTemplate(template);
}
}
});

Loading…
Cancel
Save