private void updateControls() { btnSelect.setDisabled(treeSearch.getSelectedCount() == 0); }
if (_model instanceof TreeSelectableModel) { TreeSelectableModel model = (TreeSelectableModel) _model; if (!model.isSelectionEmpty() && getSelectedCount() != model.getSelectionCount() && model.isPathSelected(path = getPath0(parent, i))) addItemToSelection(ti);