ValidationInfo () { final String message = validateAndCommitData(); getRefactorAction().setEnabled(message == null); getPreviewAction().setEnabled(message == null); if (message != null) return new ValidationInfo(message); return super.doValidate(); }