public final class Pages
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> |
activePageSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> |
activePageSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> |
activePageSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
Gets the currently active page.
|
static org.eclipse.ui.IWorkbenchPage |
getActivePage(org.eclipse.ui.IWorkbench workbench)
Gets the currently active page.
|
static org.eclipse.ui.IWorkbenchPage |
getActivePage(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active page.
|
static org.eclipse.ui.IWorkbenchPage |
waitForActivePage()
Waits for the currently active page.
|
static org.eclipse.ui.IWorkbenchPage |
waitForActivePage(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active page.
|
static org.eclipse.ui.IWorkbenchPage |
waitForActivePage(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active page.
|
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> activePageSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> activePageSupplier(@Nullable org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPage> activePageSupplier(@Nullable org.eclipse.ui.IWorkbench workbench)
public static org.eclipse.ui.IWorkbenchPage getActivePage()
null
if there is no active windowpublic static org.eclipse.ui.IWorkbenchPage getActivePage(@Nullable org.eclipse.ui.IWorkbenchWindow window)
window
- the window, may be null
null
if the window
is null
or there is no active pagepublic static org.eclipse.ui.IWorkbenchPage getActivePage(@Nullable org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, may be null
null
if the workbench
is null
or there is no active pagepublic static org.eclipse.ui.IWorkbenchPage waitForActivePage()
getActivePage()
public static org.eclipse.ui.IWorkbenchPage waitForActivePage(org.eclipse.ui.IWorkbenchWindow window)
window
- the window, can not be null
getActivePage(IWorkbenchWindow)
public static org.eclipse.ui.IWorkbenchPage waitForActivePage(org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, can not be null
getActivePage(IWorkbench)