Author: scabanovich
Date: 2011-05-03 22:25:58 -0400 (Tue, 03 May 2011)
New Revision: 31059
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java
Log:
JBIDE-8845
https://issues.jboss.org/browse/JBIDE-8845
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java 2011-05-04
02:24:51 UTC (rev 31058)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java 2011-05-04
02:25:58 UTC (rev 31059)
@@ -110,7 +110,7 @@
IDOMNode node = (IDOMNode)n;
int start = node.getStartOffset();
- int end = node.getEndOffset();
+ int end = (n instanceof Attr) ? start + ((Attr)n).getNodeName().length() :
node.getEndOffset();
if (start > offset || end < offset) return null;