void (ListSelectionEvent e) { final VcsFileRevision revision; if (myList.getSelectedRowCount() == 1 && !myList.isEmpty()) { revision = myList.getItems().get(myList.getSelectedRow()); String message = IssueLinkHtmlRenderer.formatTextIntoHtml(myProject, StringUtil.notNullize(revision.getCommitMessage())); myComments.setText(message); myComments.setCaretPosition(0); } else { revision = null; myComments.setText(""); } if (mySelectedRevisionListener != null) { mySelectedRevisionListener.consume(revision); } updateDiff(); }