Author: dazarov
Date: 2010-03-09 13:00:30 -0500 (Tue, 09 Mar 2010)
New Revision: 20712
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5986
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-09
18:00:25 UTC (rev 20711)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-09
18:00:30 UTC (rev 20712)
@@ -22,13 +22,29 @@
*/
public class RichfacesCSSClassHyperlinkPartitioner extends CSSClassHyperlinkPartitioner
{
public static final String RICHFACES_CSS_CLASS_PARTITION =
"org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS"; //$NON-NLS-1$
- private static final String RICHFACES_CSS_CLASS_TOKEN = "/styleClass/";
//$NON-NLS-1$
+
+ private static final String[] tokens = new String[]{
+ "/columnClasses/",
+ "/footerClass/",
+ "/headerClass/",
+ "/rowClasses/",
+ "/captionClass/",
+ "/captionStyle/",
+ "/styleClass/",
+ "/errorClass/",
+ "/fatalClass/",
+ "/infoClass/",
+ "/disabledClass/",
+ "/enabledClass/"
+ };
@Override
public boolean recognize(IDocument document, IHyperlinkRegion region) {
- if (region.getAxis() != null
- && region.getAxis().endsWith(RICHFACES_CSS_CLASS_TOKEN))
- return true;
+ if (region.getAxis() != null){
+ for(String token : tokens)
+ if(region.getAxis().endsWith(token))
+ return true;
+ }
return false;
}