}
};
showAnnotationsLink
.addSelectionListener(showAnnotationsLinkSelectionAdapter);
DiffViewer diffText = new DiffViewer(diffComposite, null, SWT.NONE,
false);
diffText.setEditable(false);
diffText.getControl().setLayoutData(
GridDataFactory.fillDefaults().grab(true, true).create());
IDocument document = new Document();
DiffStyleRangeFormatter diffFormatter = new DiffStyleRangeFormatter(
document);
diffFormatter.setContext(1);
diffFormatter.setRepository(revision.getRepository());
diffFormatter.format(interestingDiff, diff.getOldText(),
diff.getNewText());
diffText.setDocument(document);
diffText.setFormatter(diffFormatter);
}