Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] Need help to collect completion proposals made by code recommenders programetically

Great. Update to the latest version of master to get rid of the NPE.


> Now I need to create the right query and call
> the recommender.computeRecommendations(query) method.

I'm not sure what you want to do, but please note that the ObjectUsage class and the method EclipseOrgCallRecommender are *solely for demo purpose*. 


To make clear:
The API to look at is ICallModel. Forget about the rest if you want to learn *how* recommendations are computed and what information is considered when computing recommendations.



If you are interested to learn where the inputs into ICallModel *in Eclipse* come from:
Have a look at org.eclipse.recommenders.internal.calls.rcp.CallCompletionSessionProcessor.java or org.eclipse.recommenders.internal.calls.rcp.CallsApidocProvider.handle(IJavaElement, String, String, JavaElementSelectionEvent, Composite). The show how clients of ICallModel look like.


Let me know if you need more information. I'll update the documentation accordingly.

HTH
Marcel




Back to the top