use of org.eclipse.egit.ui.internal.reflog.ReflogView in project egit by eclipse.
the class AbstractReflogCommandHandler method getView.
protected ReflogView getView() {
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (window == null)
return null;
if (window.getActivePage() == null)
return null;
IWorkbenchPart part = window.getActivePage().getActivePart();
if (!(part instanceof ReflogView))
return null;
return (ReflogView) part;
}
Aggregations