public class ShorthandCompletion extends BasicCompletion
sysout
" could be associated with the completion
"System.out.println(
" in Java.构造器和说明 |
---|
ShorthandCompletion(CompletionProvider provider,
java.lang.String inputText,
java.lang.String replacementText)
Constructor.
|
ShorthandCompletion(CompletionProvider provider,
java.lang.String inputText,
java.lang.String replacementText,
java.lang.String shortDesc)
Constructor.
|
ShorthandCompletion(CompletionProvider provider,
java.lang.String inputText,
java.lang.String replacementText,
java.lang.String shortDesc,
java.lang.String summary)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getInputText()
Returns the text the user must start typing to get this completion.
|
java.lang.String |
getSummary()
If a summary has been set, that summary is returned.
|
protected java.lang.String |
getSummaryBody()
Returns the "body" of the HTML returned by
getSummary() when
no summary text has been set. |
getReplacementText, getShortDescription, setShortDescription, setSummary, toString
compareTo, getAlreadyEntered, getIcon, getProvider, getRelevance, getToolTipText, setRelevance
public ShorthandCompletion(CompletionProvider provider, java.lang.String inputText, java.lang.String replacementText)
provider
- The provider that returns this completion.inputText
- The text the user inputs to get this completion.replacementText
- The replacement text of the completion.public ShorthandCompletion(CompletionProvider provider, java.lang.String inputText, java.lang.String replacementText, java.lang.String shortDesc)
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
.public ShorthandCompletion(CompletionProvider provider, java.lang.String inputText, java.lang.String replacementText, java.lang.String shortDesc, java.lang.String summary)
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
.public java.lang.String getInputText()
getInputText
在接口中 Completion
getInputText
在类中 AbstractCompletion
Completion.getReplacementText()
public java.lang.String getSummary()
getSummary
在接口中 Completion
getSummary
在类中 BasicCompletion
BasicCompletion.getReplacementText()
protected java.lang.String getSummaryBody()
getSummary()
when
no summary text has been set. This is defined to return the replacement
text in a monospaced font.BasicCompletion.getReplacementText()