Package org.fife.rsta.ac.java
Class AbstractJavaSourceCompletion
- java.lang.Object
-
- org.fife.ui.autocomplete.AbstractCompletion
-
- org.fife.ui.autocomplete.BasicCompletion
-
- org.fife.rsta.ac.java.AbstractJavaSourceCompletion
-
- All Implemented Interfaces:
java.lang.Comparable<org.fife.ui.autocomplete.Completion>,JavaSourceCompletion,org.fife.ui.autocomplete.Completion
- Direct Known Subclasses:
ClassCompletion,FieldCompletion,LocalVariableCompletion,PackageNameCompletion
public abstract class AbstractJavaSourceCompletion extends org.fife.ui.autocomplete.BasicCompletion implements JavaSourceCompletion
Base class for Java source completions.- Version:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJavaSourceCompletion(org.fife.ui.autocomplete.CompletionProvider provider, java.lang.String replacementText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(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" ofCompletionas well, so, for example, a completion for the "String" class won't clash with a completion for a "string" LocalVar.java.lang.StringgetAlreadyEntered(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
-
Methods inherited from interface org.fife.rsta.ac.java.JavaSourceCompletion
equals, rendererText
-
-
-
-
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" ofCompletionas well, so, for example, a completion for the "String" class won't clash with a completion for a "string" LocalVar.- Specified by:
compareToin interfacejava.lang.Comparable<org.fife.ui.autocomplete.Completion>- Specified by:
compareToin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
compareToin classorg.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:
getAlreadyEnteredin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getAlreadyEnteredin classorg.fife.ui.autocomplete.AbstractCompletion
-
-