void () { super.createDefaultActions(); myOKAction = new OkAction() { { putValue(Action.NAME, IdeBundle.message("button.copy.and.close")); putValue(Action.SHORT_DESCRIPTION, IdeBundle.message("description.copy.text.to.clipboard")); } @Override protected void doAction(ActionEvent e) { copyAboutInfoToClipboard(); close(OK_EXIT_CODE); } }; myCancelAction.putValue(Action.NAME, IdeBundle.message("action.close")); }