Class VariableProposalProvider

    • Constructor Detail

      • VariableProposalProvider

        public VariableProposalProvider​(String[] replacementTexts)
        Creates provider with given array of strings, that will be used as replace strings for proposals
        Parameters:
        replacementTexts - The array of strings to replace with ,cannot be null
    • Method Detail

      • createProposal

        protected IPositionBasedCompletionProposal createProposal​(String replacementText,
                                                                  org.eclipse.jface.text.IRegion region)
        Creates proposal with given text to replace with
        Parameters:
        replacementText - The text to replace with, cannot be null
        region - The region of the proposal, cannot be null
        Returns:
        The instance of IPositionBasedCompletionProposal, cannot be null