boolean () { if (getVisibleTabs().size() != 1) { return false; } TabInfo info = myTabs.getSelectedInfo(); if (info == null) { return false; } return getPanel(info).getSliceTextField().getText().isEmpty(); }