Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Independent JDT plugin

Hello,

This is my first post to this discussion forum, so please tell me if my etiquette is off in some way. I've been researching the JDT plugin for the past month, specifically related to the content-assist function. I discovered how most of it works through debugging, searching through source code, and the like. However, I do have a couple questions which I believe at least several people on this forum can probably very easily answer, and save me further headache. 

I've noticed that the vanilla CompletionProposal comes with an additionalInfo field, which is used. However, when constructing a JavaCompletionProposal, there is no parameter to enter the additionalinfo information into. Should I create a CompletionProposal, then cast it as a JavaCompletionProposal?  Or, should I use the CompletionProposal within every JavaCompletionProposal, assuming then that it is accessed at some point in the completion process? Any advice on where this is usually used would be amazing.

Also, what is the commentary tag format of the additionalInfo? I've gotten <b> and </b> to work, but others that I've tried don't. If there is a website with info on this, that'd be great.

Finally, while I found the parsed representation of packages, fields, methods, and imports, I could not find a way to access the representation of a local variable within a method. There seems to be no method within the Method class which returns it's local variables. Could you point me in the right direction for finding the representation of the local variables of a class?

Thank you for your attention,

 Mathew Mooty
 Computer Science
 Carnegie Mellon University

Back to the top