Author: snjeza
Date: 2008-05-02 14:29:37 -0400 (Fri, 02 May 2008)
New Revision: 7948
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java
Log:
JBIDE-2178 Error in Visual Page editor, Seam .xhtml file
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2008-05-02
16:15:12 UTC (rev 7947)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2008-05-02
18:29:37 UTC (rev 7948)
@@ -79,7 +79,7 @@
bStart--;
}
// find end of bean property
- while (bEnd < sb.length()) {
+ while (bEnd >= 0 && bEnd < sb.length()) {
if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) &&
sb.charAt(bEnd) != '\\' && sb.charAt(bEnd) != '/'
&&
sb.charAt(bEnd) != ':' && sb.charAt(bEnd) != '-'
&&
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java 2008-05-02
16:15:12 UTC (rev 7947)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java 2008-05-02
18:29:37 UTC (rev 7948)
@@ -208,7 +208,7 @@
bStart--;
}
// find end of bean property
- while (bEnd < sb.length()) {
+ while (bEnd >= 0 && bEnd < sb.length()) {
if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) &&
sb.charAt(bEnd) != '\\' && sb.charAt(bEnd) != '/'
&&
sb.charAt(bEnd) != ':' && sb.charAt(bEnd) != '-'
&&
Show replies by date