Author: vrubezhny
Date: 2008-02-20 11:13:32 -0500 (Wed, 20 Feb 2008)
New Revision: 6477
Modified:
branches/jbosstools-2.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1799 CA: There is no CA for <h:outputText
value="|"/> on XHTML pages.
Fixed
Modified:
branches/jbosstools-2.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java
===================================================================
---
branches/jbosstools-2.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java 2008-02-20
16:01:07 UTC (rev 6476)
+++
branches/jbosstools-2.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java 2008-02-20
16:13:32 UTC (rev 6477)
@@ -336,8 +336,10 @@
String matchString = contentAssistRequest.getMatchString();
if (matchString.length() > StringUtils.strip(text).length() &&
- ( (matchString.startsWith("\"") &&
matchString.endsWith("\""))
- || (matchString.startsWith("'") &&
matchString.endsWith("\"")))) {
+ ( (matchString.startsWith("\"") &&
matchString.endsWith("\"") &&
+ (matchString.indexOf("\"") !=
matchString.lastIndexOf("\"")))
+ || (matchString.startsWith("'") &&
matchString.endsWith("\"") &&
+ (matchString.indexOf("\"") !=
matchString.lastIndexOf("\""))))) {
return;
}