void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(!myTable.isEditing() && myTable.getSelectedRow() >= 0); e.getPresentation().setText(IdeBundle.messagePointer("action.presentation.RegistryUi.text.edit")); e.getPresentation().setIcon(AllIcons.Actions.EditSource); }