[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] JDT Completion Context

I have been working on a plugin for eclipse's completion proposal feature for a while now, and I still cannot figure out exactly how the other completion proposals are determined. For instance, I was attempting to complete on a method invocation in a static context, and the best tools I could come up with short of parsing java couldn't find out what the class that was being invoked was.

I have been using the AST with binding resolution and error recovery set to true, and also with the FocalPosition feature set to true. However, I'm not convinced that the other completion proposals are using the AST as I know it, especially after stepping through the process in the debugger.

I was wondering if anyone with experience working on the completion proposals could give me some pointers to where I can get some concrete contextual information about the current position.

I already use:
CompletionContext
NodeFinder
JavaContentAssistInvocationContext
AST
CompilationUnit


Thanks!