org.eclipse.cdt.ui.text
Interface ICCompletionProposal

All Superinterfaces:
org.eclipse.jface.text.contentassist.ICompletionProposal
All Known Implementing Classes:
CCompletionProposal, TemplateEngine.CTemplateProposal

public interface ICCompletionProposal
extends org.eclipse.jface.text.contentassist.ICompletionProposal

CompletionProposal with a relevance value. The relevance value is used to sort the completion proposals. Proposals with higher relevance should be listed before proposals with lower relevance.


Method Summary
 java.lang.String getIdString()
          Returns an id string that uniquely identifies this proposal.
 int getRelevance()
          Returns the relevance of the proposal.
 
Methods inherited from interface org.eclipse.jface.text.contentassist.ICompletionProposal
apply, getAdditionalProposalInfo, getContextInformation, getDisplayString, getImage, getSelection
 

Method Detail

getRelevance

int getRelevance()
Returns the relevance of the proposal.


getIdString

java.lang.String getIdString()
Returns an id string that uniquely identifies this proposal. For most things this is the same as the display name. For functions, this strips off the parameter names and the return type.

Returns:
the string that uniquely identifies this proposal