Programmatically collect code completion result [message #1073915] |
Thu, 25 July 2013 18:41 |
MUHAMMAD ASADUZZAMAN Messages: 2 Registered: July 2013 |
Junior Member |
|
|
I am currently working on a project related with code completion and I would like to compare the result of some code completion engines for eclipse (currently my focus is limited to java projects). I found I can use the following code fragment to collect completion proposals:
CompletionProposalCollector collector= new CompletionProposalCollector(ic);
ic.codeComplete(position, collector);//i can collect the position information
IJavaCompletionProposal[] proposals= collector.getJavaCompletionProposals();
But the problem I faced is that the method returns all the completion proposals available. I tried to change the available proposal kind from eclipse->preferences->java->editor->contentAssists->advanced, but this does
not change the result. Instead of all proposal I would like to get the proposals obtained from a particular
completion engine. (for example I only want the Java-type proposals/ java non type proposals)
Is there any way I can get the result? Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03939 seconds