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:
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
ConstructorsModifierConstructorDescriptionprotectedAbstractJavaSourceCompletion(org.fife.ui.autocomplete.CompletionProvider provider, String replacementText) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(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.Methods inherited from class org.fife.ui.autocomplete.BasicCompletion
getReplacementText, getShortDescription, getSummary, setShortDescription, setSummary, toStringMethods inherited from class org.fife.ui.autocomplete.AbstractCompletion
getIcon, getInputText, getProvider, getRelevance, getToolTipText, setIcon, setRelevanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.fife.ui.autocomplete.Completion
getIcon, getInputText, getProvider, getRelevance, getReplacementText, getSummary, getToolTipTextMethods inherited from interface org.fife.rsta.ac.java.JavaSourceCompletion
equals, rendererText
-
Constructor Details
-
AbstractJavaSourceCompletion
protected AbstractJavaSourceCompletion(org.fife.ui.autocomplete.CompletionProvider provider, String replacementText)
-
-
Method Details
-
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 interfaceComparable<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
- Specified by:
getAlreadyEnteredin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getAlreadyEnteredin classorg.fife.ui.autocomplete.AbstractCompletion
-