Package org.eclipse.emf.ecp.ui.e4.view
Class ECPModelView
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.e4.view.ECPModelView
-
public class ECPModelView extends java.lang.Object
Model Explorer View Part.- Author:
- Jonas
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
P_LINK_WITH_EDITOR
Constant for the setting whether the model explorer is linked with the editor.
-
Constructor Summary
Constructors Constructor Description ECPModelView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
P_LINK_WITH_EDITOR
public static final java.lang.String P_LINK_WITH_EDITOR
Constant for the setting whether the model explorer is linked with the editor.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
@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)
Creates the model explorer view.- Parameters:
composite
- the parentComposite
menuService
- the menu service to register the context menuselectionService
- the selection service to publish the selection of the tree viewer.part
- the currentMPart
-
setActivePart
@Inject public void setActivePart(@Named("e4ActivePart") @Optional org.eclipse.e4.ui.model.application.ui.basic.MPart part)
Sets the currently active part. Used to update the selection in case the model explorer is linked to editors.- Parameters:
part
- the activeMPart
-
setFocus
@Focus public void setFocus()
Sets the focus to the tree.
-
-