Interface IPositionBasedCompletionProposal

  • All Superinterfaces:
    org.eclipse.jface.text.contentassist.ICompletionProposal
    All Known Implementing Classes:
    PositionBasedCompletionProposal

    public interface IPositionBasedCompletionProposal
    extends org.eclipse.jface.text.contentassist.ICompletionProposal
    This class is a ICompletionProposal that is based on ProposalPosition. Usually proposals validate with ICompletionProposalExtension2.validate(org.eclipse.jface.text.IDocument, int, org.eclipse.jface.text.DocumentEvent) but in LinkedModeUI all events sent to this method are null which makes validation to refresh proposal information impossible. With this implementation, validation is not needed as it always knows where to apply.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setPosition​(org.eclipse.jface.text.link.ProposalPosition position)
      Sets the position of proposal to the given one
      • Methods inherited from interface org.eclipse.jface.text.contentassist.ICompletionProposal

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

      • setPosition

        void setPosition​(org.eclipse.jface.text.link.ProposalPosition position)
        Sets the position of proposal to the given one
        Parameters:
        position - The position to set proposal on, can be null