public abstract class EditablePostfixTemplate extends PostfixTemplate
Constructor and Description |
---|
EditablePostfixTemplate(java.lang.String templateId,
java.lang.String templateName,
java.lang.String templateKey,
TemplateImpl liveTemplate,
java.lang.String example,
PostfixTemplateProvider provider) |
EditablePostfixTemplate(java.lang.String templateId,
java.lang.String templateName,
TemplateImpl liveTemplate,
java.lang.String example,
PostfixTemplateProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTemplateVariables(PsiElement element,
Template template) |
boolean |
equals(java.lang.Object o) |
void |
expand(PsiElement context,
Editor editor) |
protected Function<PsiElement,java.lang.String> |
getElementRenderer() |
protected PsiElement |
getElementToRemove(PsiElement element) |
protected abstract java.util.List<PsiElement> |
getExpressions(PsiElement context,
Document document,
int offset) |
TemplateImpl |
getLiveTemplate() |
PostfixTemplateProvider |
getProvider() |
int |
hashCode() |
boolean |
isApplicable(PsiElement context,
Document copyDocument,
int newOffset) |
calcDescription, getDescription, getExample, getId, getKey, getPresentableName, isBuiltin, isEditable, isEnabled, startInWriteAction
public EditablePostfixTemplate(java.lang.String templateId, java.lang.String templateName, TemplateImpl liveTemplate, java.lang.String example, PostfixTemplateProvider provider)
public EditablePostfixTemplate(java.lang.String templateId, java.lang.String templateName, java.lang.String templateKey, TemplateImpl liveTemplate, java.lang.String example, PostfixTemplateProvider provider)
public TemplateImpl getLiveTemplate()
public final void expand(PsiElement context, Editor editor)
expand
in class PostfixTemplate
public boolean equals(java.lang.Object o)
equals
in class PostfixTemplate
public int hashCode()
hashCode
in class PostfixTemplate
protected abstract java.util.List<PsiElement> getExpressions(PsiElement context, Document document, int offset)
public boolean isApplicable(PsiElement context, Document copyDocument, int newOffset)
isApplicable
in class PostfixTemplate
protected void addTemplateVariables(PsiElement element, Template template)
protected PsiElement getElementToRemove(PsiElement element)
protected Function<PsiElement,java.lang.String> getElementRenderer()
public PostfixTemplateProvider getProvider()
getProvider
in class PostfixTemplate