Job job = new Job(UIText.DiffEditorPage_TaskGeneratingDiff) {
protected IStatus run(IProgressMonitor monitor) {
RepositoryCommit commit = (RepositoryCommit) getEditor()
.getAdapter(RepositoryCommit.class);
FileDiff diffs[] = getDiffs(commit);
monitor.beginTask("", diffs.length); //$NON-NLS-1$
Repository repository = commit.getRepository();
for (FileDiff diff : diffs) {
if (monitor.isCanceled())
break;