try {
if (WodHtmlUtils.isWOTag(element.getName()) && WodHtmlUtils.isInline(element.getName())) {
BuildProperties buildProperties = (BuildProperties)file.getProject().getAdapter(BuildProperties.class);
if (attrName == null) {
WodParserCache cache = WodParserCache.parser(file);
SimpleWodElement wodElement = new FuzzyXMLWodElement(element, buildProperties);
if (wodElement.isTypeWithin(new Region(offset, 0))) {
hyperlinkInfo = new HTMLHyperlinkInfo();
hyperlinkInfo.setOffset(wodElement.getElementTypePosition().getOffset());
hyperlinkInfo.setLength(wodElement.getElementTypePosition().getLength());
hyperlinkInfo.setObject(WodElementTypeHyperlink.toElementTypeHyperlink(wodElement, cache));
}
}
else {
WodParserCache cache;
cache = WodParserCache.parser(file);
SimpleWodElement wodElement = new FuzzyXMLWodElement(element, buildProperties);
IWodBinding wodBinding = wodElement.getBindingNamed(attrName);
if (wodBinding != null) {
Position valuePosition = wodBinding.getValuePosition();
if (valuePosition != null) {
hyperlinkInfo = new HTMLHyperlinkInfo();
hyperlinkInfo.setOffset(valuePosition.getOffset());