Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Programmatically collect code completion result
Programmatically collect code completion result [message #1073915] Thu, 25 July 2013 18:41
MUHAMMAD ASADUZZAMAN is currently offline MUHAMMAD ASADUZZAMANFriend
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
Previous Topic:Menu Location URI/IDs
Next Topic:Ctrl-2 , X - X does not fire the action
Goto Forum:
  


Current Time: Sat Jan 18 18:46:58 GMT 2025

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

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

Back to the top