Author: vrubezhny
Date: 2012-02-17 14:28:26 -0500 (Fri, 17 Feb 2012)
New Revision: 38892
Modified:
trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlink.java
Log:
JBIDE-10127
Resolve selector in open-on of style class in VPE
Assert Failure found by
org.jboss.tools.jsf.text.ext.test.OpenOnsTest.testStyleClassOpenOns() JUnit Test Case is
fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlink.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlink.java 2012-02-17
19:07:13 UTC (rev 38891)
+++
trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlink.java 2012-02-17
19:28:26 UTC (rev 38892)
@@ -363,7 +363,8 @@
if (restOfRule.length() > 0) {
StringBuilder sb = new StringBuilder();
for (char ch : restOfRule.toCharArray()) {
- if (!Character.isJavaIdentifierPart(ch))
+ if (!Character.isJavaIdentifierPart(ch)
+ && ch != '-' && ch != '_')
break;
sb.append(ch);
}
@@ -382,7 +383,8 @@
// Get attr name
StringBuilder sb = new StringBuilder();
for (char ch : restOfRule.toCharArray()) {
- if (!Character.isJavaIdentifierPart(ch))
+ if (!Character.isJavaIdentifierPart(ch)
+ && ch != '-' && ch != '_')
break;
sb.append(ch);
}
@@ -405,7 +407,8 @@
boolean checkWord(String word) {
for (char ch : word.toCharArray()) {
- if (!Character.isJavaIdentifierPart(ch)) {
+ if (!Character.isJavaIdentifierPart(ch)
+ && ch != '-' && ch != '_') {
return false;
}
}
Show replies by date