Class CompletionProposal

    • Constructor Detail

      • CompletionProposal

        public CompletionProposal​(String replacementString,
                                  int replacementOffset,
                                  int replacementLength,
                                  int cursorPosition)
        Creates a new completion proposal based on the provided information. The replacement string is considered being the display string too. All remaining fields are set to null.
        Parameters:
        replacementString - the actual string to be inserted into the document
        replacementOffset - the offset of the text to be replaced
        replacementLength - the length of the text to be replaced
        cursorPosition - the position of the cursor following the insert relative to replacementOffset
      • CompletionProposal

        public CompletionProposal​(String replacementString,
                                  int replacementOffset,
                                  int replacementLength,
                                  int cursorPosition,
                                  Image image,
                                  String displayString,
                                  IContextInformation contextInformation,
                                  String additionalProposalInfo)
        Creates a new completion proposal. All fields are initialized based on the provided information.
        Parameters:
        replacementString - the actual string to be inserted into the document
        replacementOffset - the offset of the text to be replaced
        replacementLength - the length of the text to be replaced
        cursorPosition - the position of the cursor following the insert relative to replacementOffset
        image - the image to display for this proposal
        displayString - the string to be displayed for the proposal
        contextInformation - the context information associated with this proposal
        additionalProposalInfo - the additional information associated with this proposal