angelozerr/eclipse-wtp-xml-search — pull request #28 by gamerson (2014-09-25 05:37:51+00:00)
Title: Check parent content type to find reference container

In liferay projects we override the jspsource content type (alloyjspsource) in order to add liferay specific features to jsp (aui:script, etc) however, all of our xml-search extensions are set to use the jspsource content type and I would like to avoid using the alloyjspsource which is targeted to fixing another problem.

But for xml-search the xml references manager needs to check the parent types. So if you have this relationship
```
org.eclipse.core.runtime.text
--> org.eclipse.jst.jsp.core.jspsource
--> --> com.liferay.ide.alloy.core.alloyjspsource
```

then the XmlReferencesManager can check the current contentType but if it fails to match it should go up the contentType to its baseType and so on to see if it finds a match.