[
http://jira.jboss.com/jira/browse/JBIDE-1634?page=comments#action_12395411 ]
Alexey Kazakov commented on JBIDE-1634:
---------------------------------------
They use CompoundContentAssistProcessor:
private final Set fProcessors = new LinkedHashSet();
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
documentOffset) {
List ret = new LinkedList();
for (Iterator it = fProcessors.iterator(); it.hasNext();) {
IContentAssistProcessor p = (IContentAssistProcessor) it.next();
ICompletionProposal[] proposals = p.computeCompletionProposals(viewer,
documentOffset);
if (proposals != null)
ret.addAll(Arrays.asList(proposals));
}
return (ICompletionProposal[]) ret.toArray(new ICompletionProposal[ret.size()]);
}
So IContentAssistProcessor can control the order within its propsals (and our processors
do). But as you can see CompoundContentAssistProcessor just collects proposals from all
processors and the order is not controled.
And I agree we should report it to bugzila. I'll do it.
Content Assist for "jsfc" attribute in facelets pages
should sort proposals to have a list of available jsf components above other proposals.
---------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-1634
URL:
http://jira.jboss.com/jira/browse/JBIDE-1634
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common
Affects Versions: 2.0.0.GA
Reporter: Alexey Kazakov
Assigned To: Alexey Kazakov
Fix For: 2.0.1
Testcase:
EXECUTE: Create Seam WAR Project
EXECUTE: Open home.xhtml
EXECUTE: Insert <a jsfc="h:"></a>
EXECUTE: Ctrl+Space in <a jsfc="h:|
ASSERT: There are proposals with available JSF components in very top of the list:
f:actionListener
f:...
h:...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira