Class ShorthandCompletion

  • All Implemented Interfaces:
    java.lang.Comparable<Completion>, Completion

    public class ShorthandCompletion
    extends BasicCompletion
    A completion where the input text is shorthand for (really, just different from) the actual text to be inserted. For example, the input text "sysout" could be associated with the completion "System.out.println(" in Java.
    Version:
    1.0
    • Field Detail

      • inputText

        private java.lang.String inputText
        The text the user can start typing that will match this completion.
    • Constructor Detail

      • ShorthandCompletion

        public ShorthandCompletion​(CompletionProvider provider,
                                   java.lang.String inputText,
                                   java.lang.String replacementText)
        Constructor.
        Parameters:
        provider - The provider that returns this completion.
        inputText - The text the user inputs to get this completion.
        replacementText - The replacement text of the completion.
      • ShorthandCompletion

        public ShorthandCompletion​(CompletionProvider provider,
                                   java.lang.String inputText,
                                   java.lang.String replacementText,
                                   java.lang.String shortDesc)
        Constructor.
        Parameters:
        provider - The provider that returns this completion.
        inputText - The text the user inputs to get this completion.
        replacementText - The replacement text of the completion.
        shortDesc - A short description of the completion. This will be displayed in the completion list. This may be null.
      • ShorthandCompletion

        public ShorthandCompletion​(CompletionProvider provider,
                                   java.lang.String inputText,
                                   java.lang.String replacementText,
                                   java.lang.String shortDesc,
                                   java.lang.String summary)
        Constructor.
        Parameters:
        provider - The provider that returns this completion.
        inputText - The text the user inputs to get this completion.
        replacementText - The replacement text of the completion.
        shortDesc - A short description of the completion. This will be displayed in the completion list. This may be null.
        summary - The summary of this completion. This should be HTML. This may be null.