Author: vrubezhny
Date: 2009-10-24 13:08:18 -0400 (Sat, 24 Oct 2009)
New Revision: 18288
Modified:
branches/jbosstools-3.1.0.M4/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java
Log:
JBIDE-5056: Fix CommonExtAllTests.testUseBeanClassOpenOn
The issue is fixed for 3.1.0.M4
Modified:
branches/jbosstools-3.1.0.M4/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java
===================================================================
---
branches/jbosstools-3.1.0.M4/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-10-24
17:05:41 UTC (rev 18287)
+++
branches/jbosstools-3.1.0.M4/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-10-24
17:08:18 UTC (rev 18288)
@@ -32,6 +32,7 @@
public static final String CSS_CLASS_PARTITION =
"org.jboss.tools.common.text.ext.CSS_CLASS"; //$NON-NLS-1$
private static final String CSS_CLASS_TOKEN = "class/"; //$NON-NLS-1$
+ private static final String EXCLUSION_TOKEN = "jsp:usebean/class/";
//$NON-NLS-1$
/**
* @see
com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(org.eclipse.jface.text.IDocument,
@@ -74,9 +75,9 @@
}
public boolean recognize(IDocument document, IHyperlinkRegion region) {
-
if (region.getAxis() != null
- && region.getAxis().toLowerCase().endsWith(CSS_CLASS_TOKEN))
+ && region.getAxis().toLowerCase().endsWith(CSS_CLASS_TOKEN)
+ && !region.getAxis().toLowerCase().endsWith(EXCLUSION_TOKEN)) // Fix for
JBIDE-5056
return true;
return false;
}
Show replies by date