The EMF Search Plugin provides an Eclipse search page for searching EMF model instance data.
Unzip contents of the zip file to the Eclipse plugins directory and restart Eclipse.
Things to keep in mind when writing XPath queries:
//eClassifiers[count(eOperations) > 1 and contains(@name, 'a')]Note how the child:: axis is used to navigate the EClassifier's eOperations containment reference, but the attribute:: axis is used for the name EAttribute.
//*[emf:isA('EDataType')]/eOperationsHere we are using the special emf:isA(string) function to check if the object at hand is an instance of EDataType.
//eClassifiers[contains(@eSuperTypes, //eClassifiers[2])]
[@name = 'Foo']
has to be rewritten as ['Foo' = @name]
.
Note that this is only a limitation on structural features called name.