Author: vrubezhny
Date: 2008-01-17 10:17:10 -0500 (Thu, 17 Jan 2008)
New Revision: 5767
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
Log:
JBIDE-1635 Wrong Seam EL proposal appears if prompted not from beginning of attribute
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-01-17
14:40:54 UTC (rev 5766)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-01-17
15:17:10 UTC (rev 5767)
@@ -283,7 +283,7 @@
}
}
- List<String> suggestions = fEngine.getCompletions(seamProject, file,
documentContent, prefix, offset - prefix.length());
+ List<String> suggestions = fEngine.getCompletions(seamProject, file,
documentContent, prefix, offset + proposalPrefix.length() - prefix.length());
List<String> uniqueSuggestions = fEngine.makeUnique(suggestions);
List<ICompletionProposal> result= new ArrayList<ICompletionProposal>();
Show replies by date