Browse Source

REPORT-32939 add comment

final/10.0
hades 4 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) { if (jt instanceof JVirtualTemplate) {
JTemplate currentVirtualReplaceTemplate = HistoryTemplateListCache.getInstance().getCurrentVirtualReplaceTemplate(); JTemplate currentVirtualReplaceTemplate = HistoryTemplateListCache.getInstance().getCurrentVirtualReplaceTemplate();
if (currentVirtualReplaceTemplate != null && ComparatorUtils.equals(currentVirtualReplaceTemplate.getEditingFILE(), jt.getEditingFILE())) { if (currentVirtualReplaceTemplate != null && ComparatorUtils.equals(currentVirtualReplaceTemplate.getEditingFILE(), jt.getEditingFILE())) {
// 防止在打开了模板的情况下 去双击目录树对应的模板重复创建JTemplate
currentVirtualReplaceTemplate.activeOldJTemplate(); currentVirtualReplaceTemplate.activeOldJTemplate();
return; return;
} }

Loading…
Cancel
Save