Class AbstractJavaSourceCompletion

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractJavaSourceCompletion​(org.fife.ui.autocomplete.CompletionProvider provider, java.lang.String replacementText)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(org.fife.ui.autocomplete.Completion c2)
      Overridden to ensure that two completions don't just have the same text value (ignoring case), but that they're of the same "type" of Completion as well, so, for example, a completion for the "String" class won't clash with a completion for a "string" LocalVar.
      java.lang.String getAlreadyEntered​(javax.swing.text.JTextComponent comp)  
      • Methods inherited from class org.fife.ui.autocomplete.BasicCompletion

        getReplacementText, getShortDescription, getSummary, setShortDescription, setSummary, toString
      • Methods inherited from class org.fife.ui.autocomplete.AbstractCompletion

        getIcon, getInputText, getProvider, getRelevance, getToolTipText, setIcon, setRelevance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.fife.ui.autocomplete.Completion

        getIcon, getInputText, getProvider, getRelevance, getReplacementText, getSummary, getToolTipText
    • Constructor Detail

      • AbstractJavaSourceCompletion

        protected AbstractJavaSourceCompletion​(org.fife.ui.autocomplete.CompletionProvider provider,
                                               java.lang.String replacementText)
    • Method Detail

      • compareTo

        public int compareTo​(org.fife.ui.autocomplete.Completion c2)
        Overridden to ensure that two completions don't just have the same text value (ignoring case), but that they're of the same "type" of Completion as well, so, for example, a completion for the "String" class won't clash with a completion for a "string" LocalVar.
        Specified by:
        compareTo in interface java.lang.Comparable<org.fife.ui.autocomplete.Completion>
        Specified by:
        compareTo in interface org.fife.ui.autocomplete.Completion
        Overrides:
        compareTo in class org.fife.ui.autocomplete.AbstractCompletion
        Parameters:
        c2 - Another completion instance.
        Returns:
        How this completion compares to the other one.
      • getAlreadyEntered

        public java.lang.String getAlreadyEntered​(javax.swing.text.JTextComponent comp)
        Specified by:
        getAlreadyEntered in interface org.fife.ui.autocomplete.Completion
        Overrides:
        getAlreadyEntered in class org.fife.ui.autocomplete.AbstractCompletion