How to find all uses of an EDataType/eClassifier [message #901728] |
Tue, 14 August 2012 07:05  |
Eclipse User |
|
|
|
I've search around and haven't found any comments on this, so appologies if I am missing something and have asked a repeat question.
I have the case where I have an ecore with the following:
<eClassifiers xsi:type="ecore:EDataType" name="AddressType" instanceClassName="java.lang.String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="address_._type"/>
<details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/>
<details key="maxLength" value="50"/>
</eAnnotations>
</eClassifiers>
This is used within the ePackage some-where.
What is the best/easiest way given:
1. An eClassifier/EDataType
2. An ePackage
To find all occurances/uses of the given eClassifier in the ePackage.
i.e.
<eStructuralFeatures xsi:type="ecore:EAttribute" name="address" eType="/0/AddressType">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="address"/>
</eAnnotations>
</eStructuralFeatures>
Any help or suggested code snippets would be greatly appreciated!
Thanks,
Rob
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03537 seconds