public final class Commands
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.ui.commands.ICommandService |
getCommandService()
Gets the command service.
|
static org.eclipse.ui.commands.ICommandService |
getCommandService(org.eclipse.ui.IWorkbench workbench)
Gets the command service.
|
static org.eclipse.ui.commands.ICommandService |
waitForCommandService()
Waits for the command service.
|
static org.eclipse.ui.commands.ICommandService |
waitForCommandService(org.eclipse.ui.IWorkbench workbench)
Waits for the command service.
|
public static org.eclipse.ui.commands.ICommandService getCommandService()
null
if
the workbench has not been created yetpublic static org.eclipse.ui.commands.ICommandService getCommandService(@Nullable org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, may be null
null
if the workbench
is null
or if the workbench has no command servicepublic static org.eclipse.ui.commands.ICommandService waitForCommandService()
getCommandService()
public static org.eclipse.ui.commands.ICommandService waitForCommandService(org.eclipse.ui.IWorkbench workbench)
workbench
- the workbench, can not be null
getCommandService(IWorkbench)