Class ECPE4Editor


  • public class ECPE4Editor
    extends java.lang.Object
    Editor displaying one EObject.
    Author:
    Jonas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INPUT
      Key to set the input of the editor into the IEclipseContext.
    • Constructor Summary

      Constructors 
      Constructor Description
      ECPE4Editor​(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Shell shell)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setInput​(org.eclipse.emf.ecore.EObject modelElement, org.eclipse.e4.ui.model.application.ui.basic.MPart part, ECPProject ecpProject)
      Sets the input of the editor part.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INPUT

        public static final java.lang.String INPUT
        Key to set the input of the editor into the IEclipseContext.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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.
    • Method Detail

      • setInput

        @Inject
        public void setInput​(@Optional @Named("ecpEditorInput")
                             org.eclipse.emf.ecore.EObject modelElement,
                             org.eclipse.e4.ui.model.application.ui.basic.MPart part,
                             @Optional
                             ECPProject ecpProject)
        Sets the input of the editor part.
        Parameters:
        modelElement - the EObject to be opened
        part - the corresponding MPart
        ecpProject - The ECPProject (optional parameter)