/** * Returns the active workbench page or <code>null</code> if * no active workbench page can be determined. * * @return the active workbench page or <code>null</code> if * no active workbench page can be determined */ private static IWorkbenchPage getActivePage() { IWorkbenchWindow window= getActiveWorkbenchWindow(); if (window == null) return null; return window.getActivePage(); }
/** * Returns the SWT Shell of the active workbench window or <code>null</code> if * no workbench window is active. * * @return the SWT Shell of the active workbench window, or <code>null</code> if * no workbench window is active */ public static Shell getShell() { IWorkbenchWindow window = getActiveWorkbenchWindow(); if (window == null) return null; return window.getShell(); }
/** * Returns the active workbench page or <code>null</code> if * no active workbench page can be determined. * * @return the active workbench page or <code>null</code> if * no active workbench page can be determined */ private static IWorkbenchPage getActivePage() { IWorkbenchWindow window= getActiveWorkbenchWindow(); if (window == null) return null; return window.getActivePage(); }
/** * Returns the SWT Shell of the active workbench window or <code>null</code> if * no workbench window is active. * * @return the SWT Shell of the active workbench window, or <code>null</code> if * no workbench window is active */ public static Shell getShell() { IWorkbenchWindow window= getActiveWorkbenchWindow(); if (window == null) return null; return window.getShell(); }