void (MouseEvent e) { TabInfo tabInfo = myTabs.findInfo(e); if (tabInfo == null) return; Content content = getContentFor(tabInfo); if (CloseViewAction.isEnabled(new Content[]{content})) { CloseViewAction.perform(myContext, content); } else if (MinimizeViewAction.isEnabled(myContext, getContents(), ViewContext.CELL_TOOLBAR_PLACE)) { minimize(content); } }