|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|