public abstract class CustomLiveTemplateBase extends java.lang.Object implements CustomLiveTemplate
EP_NAME
Constructor and Description |
---|
CustomLiveTemplateBase() |
Modifier and Type | Method and Description |
---|---|
void |
addCompletions(CompletionParameters parameters,
CompletionResultSet result)
Populate completion result set.
|
java.lang.String |
computeTemplateKeyWithoutContextChecking(CustomTemplateCallback callback) |
java.util.Collection<? extends CustomLiveTemplateLookupElement> |
getLookupElements(PsiFile file,
Editor editor,
int offset)
Return lookup elements for popup that appears on ListTemplateAction (Ctrl + J)
|
boolean |
hasCompletionItem(CustomTemplateCallback callback,
int offset)
Implementation should returns
true if it has own lookup item in completion autopopup
and it is supposed that template should be expanded while completion auto-popup is active. |
boolean |
supportsMultiCaret() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeTemplateKey, expand, getShortcut, getTitle, isApplicable, supportsWrapping, wrap
public boolean hasCompletionItem(CustomTemplateCallback callback, int offset)
true
if it has own lookup item in completion autopopup
and it is supposed that template should be expanded while completion auto-popup is active.public java.util.Collection<? extends CustomLiveTemplateLookupElement> getLookupElements(PsiFile file, Editor editor, int offset)
public void addCompletions(CompletionParameters parameters, CompletionResultSet result)
public java.lang.String computeTemplateKeyWithoutContextChecking(CustomTemplateCallback callback)
public boolean supportsMultiCaret()