use of org.eclipse.egit.ui.internal.blame.BlameOperation.BlameHistoryPageInput in project egit by eclipse.
the class BlameInformationControl method showCommitInHistory.
private void showCommitInHistory() {
getShell().dispose();
IHistoryView part;
try {
part = (IHistoryView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(IHistoryView.VIEW_ID);
} catch (PartInitException e) {
Activator.logError(e.getLocalizedMessage(), e);
return;
}
if (part == null)
return;
Repository repository = revision.getRepository();
if (!repository.isBare()) {
String sourcePath = revision.getSourcePath();
File file = new File(repository.getWorkTree(), sourcePath);
BlameHistoryPageInput input = new BlameHistoryPageInput(repository, revision.getCommit(), file);
part.showHistoryFor(input);
} else {
HistoryPageInput input = new BlameHistoryPageInput(repository, revision.getCommit());
part.showHistoryFor(input);
}
}
Aggregations