return p.getDisplayString();
}
private int getRelevance(ICompletionProposal obj) {
if (obj instanceof IScriptCompletionProposal) {
IScriptCompletionProposal jcp = (IScriptCompletionProposal) obj;
return jcp.getRelevance();
} else if (obj instanceof TemplateProposal) {
TemplateProposal tp = (TemplateProposal) obj;
return tp.getRelevance();
}
// catch all