public class CmsE4Utils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem |
createDirectMenuItem(org.eclipse.e4.ui.workbench.modeling.EModelService modelService,
java.lang.Class<?> clss,
java.lang.String label)
Dynamically creates a direct menu item from a class.
|
static org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem |
createHandledMenuItem(org.eclipse.e4.ui.workbench.modeling.EModelService modelService,
org.eclipse.e4.ui.model.application.MApplication app,
java.lang.String commandId)
Dynamically creates an handled menu item from a command ID.
|
static org.eclipse.e4.ui.model.application.commands.MCommand |
findCommand(org.eclipse.e4.ui.workbench.modeling.EModelService modelService,
org.eclipse.e4.ui.model.application.MApplication app,
java.lang.String commandId)
Finds a command by ID.
|
static void |
openEditor(org.eclipse.e4.ui.workbench.modeling.EPartService partService,
java.lang.String editorId,
java.lang.String key,
java.lang.String state)
Open an editor based on its id.
|
public static void openEditor(org.eclipse.e4.ui.workbench.modeling.EPartService partService, java.lang.String editorId, java.lang.String key, java.lang.String state)
public static org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem createHandledMenuItem(org.eclipse.e4.ui.workbench.modeling.EModelService modelService, org.eclipse.e4.ui.model.application.MApplication app, java.lang.String commandId)
public static org.eclipse.e4.ui.model.application.commands.MCommand findCommand(org.eclipse.e4.ui.workbench.modeling.EModelService modelService, org.eclipse.e4.ui.model.application.MApplication app, java.lang.String commandId)
MCommand
or null
if not found.public static org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem createDirectMenuItem(org.eclipse.e4.ui.workbench.modeling.EModelService modelService, java.lang.Class<?> clss, java.lang.String label)
Copyright © 2007–2020. All rights reserved.