public final class Windows
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchWindow> |
activeWindowSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchWindow> |
activeWindowSupplier(org.eclipse.ui.IWorkbench workbench) |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWindow()
Gets the currently active window.
|
static org.eclipse.ui.IWorkbenchWindow |
getActiveWindow(org.eclipse.ui.IWorkbench workbench)
Gets the currently active window.
|
static org.eclipse.ui.IWorkbenchWindow |
waitForActiveWindow()
Waits for the currently active window.
|
static org.eclipse.ui.IWorkbenchWindow |
waitForActiveWindow(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active window.
|
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchWindow> activeWindowSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchWindow> activeWindowSupplier(@Nullable org.eclipse.ui.IWorkbench workbench)
public static org.eclipse.ui.IWorkbenchWindow getActiveWindow()
null
if
the workbench has not been created yetpublic static org.eclipse.ui.IWorkbenchWindow getActiveWindow(@Nullable org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, may be null
null
if the workbench
is null
or there is no active windowpublic static org.eclipse.ui.IWorkbenchWindow waitForActiveWindow()
getActiveWindow()
public static org.eclipse.ui.IWorkbenchWindow waitForActiveWindow(org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, can not be null
getActiveWindow(IWorkbench)