Content Assist Help! [message #184555] |
Fri, 05 November 2004 12:01  |
Eclipse User |
|
|
|
Originally posted by: the_edge_80.hotmail.com
Hi,
I have a question concerning content assist. I only want valid
completionproposals to be contained in the drop down menu that drops
down when I trigger the autoactivation character, moreover I want the
contents in drop down menu to change as I continue typing a word. Just
standard behaviour... Do I have to implement the details of this
behaviour by myself in the computeCompletionProposals, or is there any
classes or methods that supports this?
Thanks for your time.
/Erik
|
|
|
Re: Content Assist Help! [message #184571 is a reply to message #184555] |
Fri, 05 November 2004 12:19  |
Eclipse User |
|
|
|
For initial filtering, you are correct in needing to determine the correct
initial set of proposals yourself in your IContentAssistProcessor.
For continued filtering based on typing you will need to investigate the
ICompletionProposal.validate(IDocument document, int offset, DocumentEvent
event) method for your particular implementation. When typing occurs, the
initial set of proposals as determined by your IContentAssistProcessor are
given a change to validate based on the document event.
See the Ant Editor implementation for examples: AntEditorCompletionProcessor
and AntCompletionProposal
HTH
Darins
"Erik Lindblad" <the_edge_80@hotmail.com> wrote in message
news:cmgbkm$c8c$1@eclipse.org...
> Hi,
>
> I have a question concerning content assist. I only want valid
> completionproposals to be contained in the drop down menu that drops down
> when I trigger the autoactivation character, moreover I want the contents
> in drop down menu to change as I continue typing a word. Just standard
> behaviour... Do I have to implement the details of this behaviour by
> myself in the computeCompletionProposals, or is there any classes or
> methods that supports this?
>
> Thanks for your time.
>
> /Erik
>
|
|
|
Powered by
FUDForum. Page generated in 0.03978 seconds