Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Content Assist Help!
Content Assist Help! [message #184555] Fri, 05 November 2004 12:01 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Getting Static finals from a IClassFile
Next Topic:eclipse hangs with jdt application
Goto Forum:
  


Current Time: Tue Jul 22 15:45:17 EDT 2025

Powered by FUDForum. Page generated in 0.03978 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top