Why is the filter setting checked here? Doesn't the commit graph table simply ignore the calls if the selected commit is not in the list?
If we really need to check whether the list is filtered, then a check for SHOWALLREPO as filter is not sufficient: if the input is a Repository (because you selected a repo in the repo view), then the filter buttons are simply deactivated, but the previous setting will still be active; however, the user can not change the setting, so we would have to check for filter != SHOWALLREPO && ((input.getItems() != null) || (input.getFiles() == null))) (or something like this).