Browse Source

添加注释

release/11.0
kerry 2 years ago
parent
commit
c9cf01170c
  1. 7
      designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

7
designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

@ -223,6 +223,13 @@ public class MultiTemplateTabPane extends JComponent {
this.closeOption = closeOption; this.closeOption = closeOption;
} }
/**
* 判断模板是否可以关闭两个条件1是否满足CloseOption里面的条件在左侧在右侧等2是否和当前正在编辑模板属于同一种模板tab操作类型
* @param closeJTemplate
* @param tplIndex
* @param i
* @return
*/
public boolean shouldClose(JTemplate closeJTemplate, int tplIndex, int i) { public boolean shouldClose(JTemplate closeJTemplate, int tplIndex, int i) {
boolean matchOption = this.closeOption.shouldClose(tplIndex, i); boolean matchOption = this.closeOption.shouldClose(tplIndex, i);
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();

Loading…
Cancel
Save