Class MEEditorInput

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

    public class MEEditorInput
    extends java.lang.Object
    implements org.eclipse.ui.IEditorInput
    The IEditorInput for the MEEditor.
    Author:
    helming, shterev, naughton
    • Constructor Detail

      • MEEditorInput

        public MEEditorInput​(ECPEditorContext context,
                             org.eclipse.emf.ecore.EStructuralFeature problemFeature)
        Constructor to add a probleFeature.
        Parameters:
        context - context of the model element
        problemFeature - the problem feature
      • MEEditorInput

        public MEEditorInput​(ECPEditorContext context)
        Default constructor.
        Parameters:
        context - context of the modelelement
    • Method Detail

      • exists

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

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

        public org.eclipse.emf.ecore.EStructuralFeature getProblemFeature()
        Returns:
        the problemFeature
      • setProblemFeature

        public void setProblemFeature​(org.eclipse.emf.ecore.EStructuralFeature problemFeature)
        Parameters:
        problemFeature - the problemFeature to set
      • equals

        public boolean equals​(java.lang.Object obj)
        Custom equals() for this class.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the compared object.
        Returns:
        the boolean state.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getAdapter

        public java.lang.Object getAdapter​(java.lang.Class clazz)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • dispose

        public void dispose()
        Disposes the input.
      • getImageDescriptor

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

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

        public java.lang.String getToolTipText()
        Specified by:
        getToolTipText in interface org.eclipse.ui.IEditorInput