public final class Helper extends Object
Modifier and Type | Method and Description |
---|---|
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 . |
public static org.eclipse.emf.ecore.EClass getRootEClass(ECPProject project)
VView
.project
- the project to checkEClass
public static org.eclipse.emf.ecore.EClass getRootEClass(org.eclipse.emf.ecore.EObject eObject)
EObject
is checked for
VView
.eObject
- the EObject
to checkEClass
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 usepublic static Set<org.eclipse.emf.ecore.EClass> getDatasegmentSubclasses(org.eclipse.emf.ecore.EClass root)
root
- the EClass to analyzepublic static boolean hasFeaturePropertyDescriptor(org.eclipse.emf.ecore.EStructuralFeature featureToCheck)
EStructuralFeature
has an IItemPropertyDescriptor
.featureToCheck
- the EStructuralFeature
to checkpublic 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 checkCopyright © 2017. All rights reserved.