MessageFormat
.format(UIText.ReplaceWithPreviousActionHandler_NoParentCommitDialogMessage,
resources[0].getName()));
throw new OperationCanceledException();
} else if (parentCount > 1) {
CommitSelectDialog dlg = new CommitSelectDialog(
getShell(event), previousCommits);
if (dlg.open() == Window.OK)
return dlg.getSelectedCommit().getName();
else
throw new OperationCanceledException();
} else
return previousCommits.get(0).getName();
} catch (IOException e) {