|
|
@ -226,7 +226,7 @@ public class MultiTemplateTabPane extends JComponent { |
|
|
|
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(); |
|
|
|
if (currentTemplate == null) { |
|
|
|
if (!JTemplate.isValid(currentTemplate)) { |
|
|
|
return matchOption; |
|
|
|
return matchOption; |
|
|
|
} |
|
|
|
} |
|
|
|
return matchOption && ComparatorUtils.equals(closeJTemplate.getTemplateTabOperatorType(), |
|
|
|
return matchOption && ComparatorUtils.equals(closeJTemplate.getTemplateTabOperatorType(), |
|
|
|