Interface IJavaCompletionProposal

All Superinterfaces:
org.eclipse.jface.text.contentassist.ICompletionProposal
All Known Implementing Classes:
ASTRewriteCorrectionProposal, ChangeCorrectionProposal, CUCorrectionProposal

public interface IJavaCompletionProposal extends org.eclipse.jface.text.contentassist.ICompletionProposal
A completion proposal 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.

This interface can be implemented by clients.

Since:
2.1
See Also:
  • ICompletionProposal
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the relevance of this completion proposal.

    Methods inherited from interface org.eclipse.jface.text.contentassist.ICompletionProposal

    apply, getAdditionalProposalInfo, getContextInformation, getDisplayString, getImage, getSelection
  • Method Details

    • getRelevance

      int getRelevance()
      Returns the relevance of this completion proposal.

      The relevance is used to determine if this proposal is more relevant than another proposal.

      Returns:
      the relevance of this completion proposal