public class ECPModelView extends Object
Modifier and Type | Field and Description |
---|---|
static String |
P_LINK_WITH_EDITOR
Constant for the setting whether the model explorer is linked with the editor.
|
Constructor and Description |
---|
ECPModelView() |
Modifier and Type | Method and Description |
---|---|
void |
create(org.eclipse.swt.widgets.Composite composite,
org.eclipse.e4.ui.services.EMenuService menuService,
org.eclipse.e4.ui.workbench.modeling.ESelectionService selectionService,
org.eclipse.e4.ui.model.application.ui.basic.MPart part)
Creates the model explorer view.
|
void |
setActivePart(org.eclipse.e4.ui.model.application.ui.basic.MPart part)
Sets the currently active part.
|
void |
setFocus()
Sets the focus to the tree.
|
public static final String P_LINK_WITH_EDITOR
@PostConstruct public void create(org.eclipse.swt.widgets.Composite composite, org.eclipse.e4.ui.services.EMenuService menuService, org.eclipse.e4.ui.workbench.modeling.ESelectionService selectionService, org.eclipse.e4.ui.model.application.ui.basic.MPart part)
composite
- the parent Composite
menuService
- the menu service to register the context menuselectionService
- the selection service to publish the selection of the tree viewer.part
- the current MPart
@Inject public void setActivePart(@Named(value="e4ActivePart") @Optional org.eclipse.e4.ui.model.application.ui.basic.MPart part)
part
- the active MPart
@Focus public void setFocus()
Copyright © 2019. All rights reserved.