Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 385397

Summary: Include object constructors to the models of intelligent call completion
Product: z_Archived Reporter: Sergey Parilin <parilinsa>
Component: RecommendersAssignee: Marcel Bruch <marcel.bruch>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: sewe
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sergey Parilin CLA 2012-07-18 08:18:55 EDT
For now, when I type "List<String> list = new " and use proposals here, it suggests only for anonymous class implementation. It will be great to get a suggestion about constructors of classes which implements this interface and factory methods which return such implementations ordered according recommenders model.
Comment 1 Marcel Bruch CLA 2012-07-18 08:28:58 EDT
Valid point.
The required infrastructure is already available for this (although a bit limited). UI Support, however, is missing completely. Let me know if you are interested to contribute a recommender for this. Your help would be appreciated :)
Comment 2 Sergey Parilin CLA 2012-07-18 08:56:49 EDT
In theory, I could do this. But I never write plugins for eclipse and I have no idea where to start and where I must digging. Is anywhere some technical documentation or architecture overview?
Comment 3 Marcel Bruch CLA 2012-07-24 00:14:59 EDT
Well, starting from scratch with Eclipse development is not an easy thing. You could, however, start adding  a new DefinitionCompletionProposalComputer to the o.e.r.completion.rcp.calls plugin. You may have a look on the CallsCompletionProposalComputer class for an example how to load models and how to query the bayesian network.

Let me know if you have time to go for this feature. If you have any questions please don't hesitate to ask on the dev mailing list for details about how to extend Code Recommenders. 

Thanks,
Marcel
Comment 4 Marcel Bruch CLA 2014-06-17 11:09:19 EDT
Codetrails published a content assist engine that *almost* does what you would like to see. Please check out this blog post for details [1].


Since the difference to what's there and what's requested is minimal (you have to specify at least one character of the type you are looking for), I'll close this bug as wont fix for now. 

If someone steps up to provide a recommender that does not need the 1-char prefix, we'd happily accept patches.



[1] http://www.codetrails.com/blog/use-subtype-aware-completion-and-help-shape-future-code-completion