|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.spi.editor.controls.Helper
public final class Helper
Helper class for editor controls.
Method Summary | |
---|---|
static Set<org.eclipse.emf.ecore.EClass> |
getDatasegmentSubclasses(org.eclipse.emf.ecore.EClass root)
Determines all EClasses that can be reached from this EClass. |
static void |
getReferenceMap(org.eclipse.emf.ecore.EClass parent,
Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> childParentReferenceMap)
Fills a map based on all containment features found from the provided EClass onward. |
static List<org.eclipse.emf.ecore.EReference> |
getReferencePath(org.eclipse.emf.ecore.EClass rootEClass,
org.eclipse.emf.ecore.EClass selectedClass,
Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> childParentReferenceMap)
Retrieves the reference path for a selected EClass from the provided map. |
static org.eclipse.emf.ecore.EClass |
getRootEClass(ECPProject project)
Retrieves the root ECLass form a project, with the assumption that the project consists only of a VView . |
static org.eclipse.emf.ecore.EClass |
getRootEClass(org.eclipse.emf.ecore.EObject eObject)
Retrieves the root ECLass form an EObject. |
static boolean |
hasFeaturePropertyDescriptor(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.jface.viewers.TreePath treePath)
Checks whether a EStructuralFeature has an IItemPropertyDescriptor . |
static boolean |
hasFeaturePropertyDescriptor(org.eclipse.emf.ecore.EStructuralFeature featureToCheck)
Checks whether a EStructuralFeature has an IItemPropertyDescriptor . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.eclipse.emf.ecore.EClass getRootEClass(ECPProject project)
VView
.
project
- the project to check
EClass
public static org.eclipse.emf.ecore.EClass getRootEClass(org.eclipse.emf.ecore.EObject eObject)
EObject
is checked for
VView
.
eObject
- the EObject
to check
EClass
public static void getReferenceMap(org.eclipse.emf.ecore.EClass parent, Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> childParentReferenceMap)
parent
- the EClass
to use as rootchildParentReferenceMap
- the map to fillpublic static List<org.eclipse.emf.ecore.EReference> getReferencePath(org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.ecore.EClass selectedClass, Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> childParentReferenceMap)
rootEClass
- the root EClass of the view modelselectedClass
- the EClass
to get the reference path forchildParentReferenceMap
- the map to use
public static Set<org.eclipse.emf.ecore.EClass> getDatasegmentSubclasses(org.eclipse.emf.ecore.EClass root)
root
- the EClass to analyze
public static boolean hasFeaturePropertyDescriptor(org.eclipse.emf.ecore.EStructuralFeature featureToCheck)
EStructuralFeature
has an IItemPropertyDescriptor
.
featureToCheck
- the EStructuralFeature
to check
public static boolean hasFeaturePropertyDescriptor(org.eclipse.emf.ecore.EClass eClass, org.eclipse.jface.viewers.TreePath treePath)
EStructuralFeature
has an IItemPropertyDescriptor
.
eClass
- the root EClass
treePath
- the TreePath
to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |