Author: vrubezhny
Date: 2008-01-17 09:40:23 -0500 (Thu, 17 Jan 2008)
New Revision: 5765
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1645 Seam EL Content Assist suggests wrong
proposals if we have an uncompleted EL in text.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2008-01-17
14:29:33 UTC (rev 5764)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2008-01-17
14:40:23 UTC (rev 5765)
@@ -62,7 +62,22 @@
if(document!=null) {
documentContent = document.get();
}
+ return getCompletions(project, file, documentContent, prefix, position);
+ }
+ /**
+ * Create the array of suggestions.
+ *
+ * @param project Seam project
+ * @param file File
+ * @param documentContent
+ * @param prefix the prefix to search for
+ * @param position Offset of the prefix
+ * @return the list of all possible suggestions
+ * @throws BadLocationException if accessing the current document fails
+ */
+ public List<String> getCompletions(ISeamProject project, IFile file, String
documentContent, CharSequence prefix,
+ int position) throws BadLocationException, StringIndexOutOfBoundsException {
List<String> completions = new ArrayList<String>();
SeamELOperandResolveStatus status = resolveSeamELOperand(project, file,
documentContent, prefix, position, false);
if (status.isOK()) {
@@ -72,7 +87,6 @@
// return getCompletions(project, file, documentContent, prefix, position, false, null,
null);
}
-
/**
* Create the array of suggestions.
* @param project Seam project