@Override
    public void update(@NotNull AnActionEvent e) {
      e.getPresentation().setEnabled(!myTable.isEditing() && myTable.getSelectedRow() >= 0);
      e.getPresentation().setText(IdeBundle.messagePointer("action.presentation.RegistryUi.text"));
      e.getPresentation().setIcon(AllIcons.General.Reset);

      if (e.getPresentation().isEnabled()) {
        RegistryValue rv = myModel.getRegistryValue(myTable.convertRowIndexToModel(myTable.getSelectedRow()));
        e.getPresentation().setEnabled(rv.isChangedFromDefault());
      }
    }
@Override
    public void update(@NotNull AnActionEvent e)