Author: vrubezhny
Date: 2009-11-29 08:40:21 -0500 (Sun, 29 Nov 2009)
New Revision: 18915
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java
Log:
JBIDE-5002: OpenOn doesn't work for html tags <link href="|"/> and
<a href="|" /> inside <f:view>
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java 2009-11-29
13:31:29 UTC (rev 18914)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/HyperlinkPartitionerDefinition.java 2009-11-29
13:40:21 UTC (rev 18915)
@@ -389,7 +389,7 @@
}
if(fEndDelim ||
path.endsWith(fDelimitedPathElements[fDelimitedPathElements.length-1])) {
int lastTaglib = path.lastIndexOf(TAGLIB);
- if(lastTaglib <= tagLib)
+ if(tagLib == -1 || lastTaglib <= tagLib)
return true;
}
return false;
Show replies by date