Class EditorModelElementOpener

  • All Implemented Interfaces:
    ECPModelElementOpener

    public class EditorModelElementOpener
    extends java.lang.Object
    implements ECPModelElementOpener
    ECP Class to open the default ECP Editor.
    Author:
    Eugen Neufeld
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int canOpen​(org.eclipse.emf.ecore.EObject modelElement)
      The default editor can open every EObject, but has the lowest value.
      void openModelElement​(java.lang.Object modelElement, ECPProject ecpProject)
      Opens the default ECP Editor for an EObject and the corresponding ECPProject.
      • Methods inherited from class java.lang.Object

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

      • EditorModelElementOpener

        public EditorModelElementOpener()
        Convenient constructor.
    • Method Detail

      • canOpen

        public int canOpen​(org.eclipse.emf.ecore.EObject modelElement)
        The default editor can open every EObject, but has the lowest value.
        Parameters:
        modelElement - EObject to test
        Returns:
        0
      • openModelElement

        public void openModelElement​(java.lang.Object modelElement,
                                     ECPProject ecpProject)
        Opens the default ECP Editor for an EObject and the corresponding ECPProject.
        Specified by:
        openModelElement in interface ECPModelElementOpener
        Parameters:
        modelElement - the EObject to open the Editor for
        ecpProject - the ECPProject to open the Editor for