Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[recommenders-dev] Codesearch Prototype available in Head

Hi all,

I just made available the example code-search server and put the Eclipse code-search client on the HEAD update site for testing purpose. Please feel free to give it a try and report your first impression back to me.

The code-search server currently serves sources of Eclipse 3.5 Classic edition. Thus, if you are looking for some code examples in the Eclipse space give it a try. Codesearch is triggered via code completion inside method bodies as shown below:

public class GetStatusLineInView extends ViewPart {


public void reportStatusMessage(final String message) {
final IStatusLineManager statusLine = null;
statusLine.setMessage(message);<^Space>
}
@Override
public void createPartControl(final Composite parent) {
// TODO Auto-generated method stub

}

@Override
public void setFocus() {
// TODO Auto-generated method stub

}
}

After the request is send, a new view pops up showing the recommended code examples. Some example scenarios can be found in /org.eclipse.recommenders.examples.codesearch project. You may receive an exception the first time you trigger codesearch. If so, just open the preferences of the code search engine once and restart Eclipse. We'll fix this next week :)

Kristijan, if you play around with the search client you will quickly learn how current code summaries can be improved :-) Just check out the code and start experimenting.

All the best,
Marcel


-- 


Back to the top