@Override
  public void update(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    VcsLogGraphTable table = e.getData(VcsLogInternalDataKeys.VCS_LOG_GRAPH_TABLE);
    if (project == null || table == null) {
      e.getPresentation().setEnabledAndVisible(false);
    }
    else {
      e.getPresentation().setEnabledAndVisible(table.getSelectedRowCount() == 1);
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)