public final class Handlers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.ui.handlers.IHandlerService |
getHandlerService()
Gets the handler service.
|
static org.eclipse.ui.handlers.IHandlerService |
getHandlerService(org.eclipse.ui.IWorkbench workbench)
Gets the handler service.
|
static org.eclipse.ui.handlers.IHandlerService |
waitForHandlerService()
Waits for the handler service.
|
static org.eclipse.ui.handlers.IHandlerService |
waitForHandlerService(org.eclipse.ui.IWorkbench workbench)
Waits for the handler service.
|
public static org.eclipse.ui.handlers.IHandlerService getHandlerService()
null if
the workbench has not been created yetpublic static org.eclipse.ui.handlers.IHandlerService getHandlerService(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or if the workbench has no handler servicepublic static org.eclipse.ui.handlers.IHandlerService waitForHandlerService()
getHandlerService()public static org.eclipse.ui.handlers.IHandlerService waitForHandlerService(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetHandlerService(IWorkbench)