Search in sources :

Example 1 with ReflogView

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;
}
Also used : IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) IWorkbenchPart(org.eclipse.ui.IWorkbenchPart) ReflogView(org.eclipse.egit.ui.internal.reflog.ReflogView)

Aggregations

ReflogView (org.eclipse.egit.ui.internal.reflog.ReflogView)1 IWorkbenchPart (org.eclipse.ui.IWorkbenchPart)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1