org.eclipse.emf.ecp.ui.e4.editor
Class ECPE4Editor
java.lang.Object
org.eclipse.emf.ecp.ui.e4.editor.ECPE4Editor
public class ECPE4Editor
- extends Object
Editor displaying one EObject
.
- Author:
- Jonas
Field Summary |
static String |
INPUT
Key to set the input of the editor into the IEclipseContext . |
Constructor Summary |
ECPE4Editor(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Shell shell)
Default constructor. |
Method Summary |
void |
setInput(org.eclipse.emf.ecore.EObject modelElement,
ECPProject ecpProject,
org.eclipse.e4.ui.model.application.ui.basic.MPart part)
Sets the input of the editor part. |
INPUT
public static final String INPUT
- Key to set the input of the editor into the
IEclipseContext
.
- See Also:
- Constant Field Values
ECPE4Editor
@Inject
public ECPE4Editor(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Shell shell)
- Default constructor.
- Parameters:
composite
- the parent composite.shell
- to retrieve the display from. Used to retrieve the system colors.
setInput
@Inject
public void setInput(@Optional@Named(value="ecpEditorInput")
org.eclipse.emf.ecore.EObject modelElement,
@Optional
ECPProject ecpProject,
org.eclipse.e4.ui.model.application.ui.basic.MPart part)
- Sets the input of the editor part.
- Parameters:
modelElement
- the EObject
to be openedecpProject
- the ECPProject
in which the EObject
is containedpart
- the corresponding MPart
Copyright © 2014. All Rights Reserved.