public class ShorthandCompletion extends BasicCompletion
sysout" could be associated with the completion
"System.out.println(" in Java.| Constructor and Description |
|---|
ShorthandCompletion(CompletionProvider provider,
String inputText,
String replacementText)
Constructor.
|
ShorthandCompletion(CompletionProvider provider,
String inputText,
String replacementText,
String shortDesc)
Constructor.
|
ShorthandCompletion(CompletionProvider provider,
String inputText,
String replacementText,
String shortDesc,
String summary)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInputText()
Returns the text the user must start typing to get this completion.
|
String |
getSummary()
If a summary has been set, that summary is returned.
|
protected String |
getSummaryBody()
Returns the "body" of the HTML returned by
getSummary() when
no summary text has been set. |
getReplacementText, getShortDescription, setShortDescription, setSummary, toStringcompareTo, getAlreadyEntered, getIcon, getProvider, getRelevance, getToolTipText, setRelevancepublic ShorthandCompletion(CompletionProvider provider, String inputText, 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, String inputText, String replacementText, 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, String inputText, String replacementText, String shortDesc, 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 String getInputText()
getInputText in interface CompletiongetInputText in class AbstractCompletionCompletion.getReplacementText()public String getSummary()
getSummary in interface CompletiongetSummary in class BasicCompletionBasicCompletion.getReplacementText()protected String getSummaryBody()
getSummary() when
no summary text has been set. This is defined to return the replacement
text in a monospaced font.BasicCompletion.getReplacementText()