Browse Source

REPORT-32939 add comment

final/10.0
hades 5 years ago
parent
commit
838183e165
  1. 1
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

1
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

@ -1109,6 +1109,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
if (jt instanceof JVirtualTemplate) {
JTemplate currentVirtualReplaceTemplate = HistoryTemplateListCache.getInstance().getCurrentVirtualReplaceTemplate();
if (currentVirtualReplaceTemplate != null && ComparatorUtils.equals(currentVirtualReplaceTemplate.getEditingFILE(), jt.getEditingFILE())) {
// 防止在打开了模板的情况下 去双击目录树对应的模板重复创建JTemplate
currentVirtualReplaceTemplate.activeOldJTemplate();
return;
}

Loading…
Cancel
Save