Author: vrubezhny
Date: 2008-12-01 12:47:26 -0500 (Mon, 01 Dec 2008)
New Revision: 12182
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPActiveContentAssistProcessor.java
Log:
JBIDE-3290 sorting/filtering is not updating correctly in code completion of source page
in VPE
The EL-proposals are disallowed to be shown if there is no #{-prefix is typed in the
text
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPActiveContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPActiveContentAssistProcessor.java 2008-12-01
17:21:27 UTC (rev 12181)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPActiveContentAssistProcessor.java 2008-12-01
17:47:26 UTC (rev 12182)
@@ -175,7 +175,11 @@
}
Collection elProposals = null;
- if (elQueryString != null) {
+ if (elQueryString != null
+ // JBIDE-3290 Quick-fix - this supresses the EL-proposals suggestions
+ // in case of no "#{"-prefix is typed
+ && elStartPosition != -1
+ ) {
// Query to request for EL-proposals
try {
String query = new
StringBuffer(KbQuery.TAG_SEPARATOR).append(tagName).append(KbQuery.ATTRIBUTE_SEPARATOR).append(attributeName).append(KbQuery.ENUMERATION_SEPARATOR).append(elQueryString).toString();
Show replies by date