Package org.eclipse.emf.ecp.editor.e3
Class MEEditorInput
- java.lang.Object
-
- org.eclipse.emf.ecp.editor.e3.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
TheIEditorInput
for theMEEditor
.- Author:
- helming, shterev, naughton
-
-
Constructor Summary
Constructors Constructor Description MEEditorInput(ECPEditorContext context)
Default constructor.MEEditorInput(ECPEditorContext context, org.eclipse.emf.ecore.EStructuralFeature problemFeature)
Constructor to add a probleFeature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes the input.boolean
equals(java.lang.Object obj)
Custom equals() for this class.boolean
exists()
java.lang.Object
getAdapter(java.lang.Class clazz)
org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor()
ECPEditorContext
getModelElementContext()
Returns theECPEditorContext
.java.lang.String
getName()
org.eclipse.ui.IPersistableElement
getPersistable()
org.eclipse.emf.ecore.EStructuralFeature
getProblemFeature()
java.lang.String
getToolTipText()
int
hashCode()
void
setProblemFeature(org.eclipse.emf.ecore.EStructuralFeature problemFeature)
-
-
-
Constructor Detail
-
MEEditorInput
public MEEditorInput(ECPEditorContext context, org.eclipse.emf.ecore.EStructuralFeature problemFeature)
Constructor to add a probleFeature.- Parameters:
context
- context of the model elementproblemFeature
- 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 interfaceorg.eclipse.ui.IEditorInput
-
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interfaceorg.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 classjava.lang.Object
- Parameters:
obj
- the compared object.- Returns:
- the boolean state.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getModelElementContext
public ECPEditorContext getModelElementContext()
Returns theECPEditorContext
.- Returns:
ECPEditorContext
-
dispose
public void dispose()
Disposes the input.
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interfaceorg.eclipse.ui.IEditorInput
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.eclipse.ui.IEditorInput
-
getToolTipText
public java.lang.String getToolTipText()
- Specified by:
getToolTipText
in interfaceorg.eclipse.ui.IEditorInput
-
-