public class ShorthandCompletionCache
extends java.lang.Object
TemplateCompletion that uses parameterized variables/values.While template completion example:
while --> while(condition) {
//cursor here
}
Comment completion example:
null --> <code>null</code>This is really a convenient place to store these types of completions that are re-used.
| Constructor and Description |
|---|
ShorthandCompletionCache(org.fife.ui.autocomplete.AbstractCompletionProvider templateProvider,
org.fife.ui.autocomplete.AbstractCompletionProvider commentProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommentCompletion(org.fife.ui.autocomplete.Completion completion)
Adds a comment completion to this cache.
|
void |
addShorthandCompletion(org.fife.ui.autocomplete.Completion completion)
Adds a shorthand completion to this cache.
|
void |
clearCache()
Removes all completions from this cache.
|
java.util.List<org.fife.ui.autocomplete.Completion> |
getCommentCompletions() |
org.fife.ui.autocomplete.AbstractCompletionProvider |
getCommentProvider() |
java.util.List<org.fife.ui.autocomplete.Completion> |
getShorthandCompletions() |
org.fife.ui.autocomplete.AbstractCompletionProvider |
getTemplateProvider() |
void |
removeCommentCompletion(org.fife.ui.autocomplete.Completion completion)
Removes a specific comment completion from this cache.
|
void |
removeShorthandCompletion(org.fife.ui.autocomplete.Completion completion)
Removes a shorthand completion from this cache.
|
public ShorthandCompletionCache(org.fife.ui.autocomplete.AbstractCompletionProvider templateProvider, org.fife.ui.autocomplete.AbstractCompletionProvider commentProvider)
public void addShorthandCompletion(org.fife.ui.autocomplete.Completion completion)
completion - The completion to add.removeShorthandCompletion(Completion)public java.util.List<org.fife.ui.autocomplete.Completion> getShorthandCompletions()
public void removeShorthandCompletion(org.fife.ui.autocomplete.Completion completion)
completion - The completion to remove.addShorthandCompletion(Completion)public void clearCache()
public void addCommentCompletion(org.fife.ui.autocomplete.Completion completion)
completion - The completion to add.removeCommentCompletion(Completion)public java.util.List<org.fife.ui.autocomplete.Completion> getCommentCompletions()
public void removeCommentCompletion(org.fife.ui.autocomplete.Completion completion)
completion - The completion to remove.addCommentCompletion(Completion)public org.fife.ui.autocomplete.AbstractCompletionProvider getTemplateProvider()
public org.fife.ui.autocomplete.AbstractCompletionProvider getCommentProvider()