Class EObjectEditorInput<M extends org.eclipse.emf.ecore.EObject>

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement

    public class EObjectEditorInput<M extends org.eclipse.emf.ecore.EObject>
    extends org.eclipse.core.runtime.PlatformObject
    implements org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistableElement
    • Constructor Detail

      • EObjectEditorInput

        public EObjectEditorInput​(M model)
        Parameters:
        model -
      • EObjectEditorInput

        public EObjectEditorInput​(M model,
                                  org.eclipse.emf.ecore.EStructuralFeature feature)
    • Method Detail

      • getModel

        public M getModel()
      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
      • getAdapter

        public Object getAdapter​(Class key)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        Overrides:
        getAdapter in class org.eclipse.core.runtime.PlatformObject
      • exists

        public boolean exists()
        Specified by:
        exists in interface org.eclipse.ui.IEditorInput
      • getImageDescriptor

        public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
        Specified by:
        getImageDescriptor in interface org.eclipse.ui.IEditorInput
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.ui.IEditorInput
      • getPersistable

        public org.eclipse.ui.IPersistableElement getPersistable()
        Specified by:
        getPersistable in interface org.eclipse.ui.IEditorInput
      • getToolTipText

        public String getToolTipText()
        Specified by:
        getToolTipText in interface org.eclipse.ui.IEditorInput
      • saveState

        public void saveState​(org.eclipse.ui.IMemento memento)
        Specified by:
        saveState in interface org.eclipse.ui.IPersistable
      • getFactoryId

        public String getFactoryId()
        Specified by:
        getFactoryId in interface org.eclipse.ui.IPersistableElement
      • equals

        public boolean equals​(Object obj)
        The EObjectEditorInput implementation of this Object method bases the equality of two EObjectEditorInput objects on the equality of their underlying EObject model.
        Overrides:
        equals in class Object