|
|
@ -1210,7 +1210,7 @@ public class MultiTemplateTabPane extends JComponent { |
|
|
|
|
|
|
|
|
|
|
|
private boolean checkCurrentClose(JTemplate template) { |
|
|
|
private boolean checkCurrentClose(JTemplate template) { |
|
|
|
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
return currentTemplate != null && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath()); |
|
|
|
return JTemplate.isValid(currentTemplate) && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private class MultiTemplateTabMouseMotionListener implements MouseMotionListener { |
|
|
|
private class MultiTemplateTabMouseMotionListener implements MouseMotionListener { |
|
|
|