Author: vrubezhny
Date: 2008-12-01 12:48:17 -0500 (Mon, 01 Dec 2008)
New Revision: 12183
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.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/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-12-01
17:47:26 UTC (rev 12182)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-12-01
17:48:17 UTC (rev 12183)
@@ -369,6 +369,12 @@
boolean isInEl = checkStartPositionInEL(viewer, offset);
String prefix= engine.getPrefix(viewer, offset, start, end);
+ // JBIDE-3290 Quick-fix - this supresses the EL-proposals suggestions
+ // in case of no "#{"-prefix is typed
+
+ if (!isInEl)
+ return NO_PROPOSALS;
+
if(isInEl && (prefix == null || prefix.length() == 0)) {
String el = viewer.getDocument().get().substring(start, offset) + "a";
ELModel model = engine.getParserFactory().createParser().parse(el);
Show replies by date