public class PostfixTemplateWrapper extends PostfixTemplate
Constructor and Description |
---|
PostfixTemplateWrapper(PostfixTemplate template) |
PostfixTemplateWrapper(java.lang.String id,
java.lang.String name,
java.lang.String key,
PostfixTemplate template,
PostfixTemplateProvider provider) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
void |
expand(PsiElement context,
Editor editor) |
PostfixTemplate |
getDelegate() |
java.lang.String |
getDescription() |
int |
hashCode() |
boolean |
isApplicable(PsiElement context,
Document copyDocument,
int newOffset) |
boolean |
isBuiltin()
Builtin templates cannot be removed.
|
boolean |
isEditable()
Template can be edit.
|
boolean |
isEnabled(PostfixTemplateProvider provider) |
boolean |
startInWriteAction() |
calcDescription, getExample, getId, getKey, getPresentableName, getProvider
public PostfixTemplateWrapper(PostfixTemplate template)
public PostfixTemplateWrapper(java.lang.String id, java.lang.String name, java.lang.String key, PostfixTemplate template, PostfixTemplateProvider provider)
public PostfixTemplate getDelegate()
public java.lang.String getDescription()
getDescription
in class PostfixTemplate
public boolean startInWriteAction()
startInWriteAction
in class PostfixTemplate
public boolean isEnabled(PostfixTemplateProvider provider)
isEnabled
in class PostfixTemplate
public boolean isApplicable(PsiElement context, Document copyDocument, int newOffset)
isApplicable
in class PostfixTemplate
public void expand(PsiElement context, Editor editor)
expand
in class PostfixTemplate
public boolean isBuiltin()
PostfixTemplate
isBuiltin
in class PostfixTemplate
public boolean isEditable()
PostfixTemplate
isEditable
in class PostfixTemplate
public boolean equals(java.lang.Object o)
equals
in class PostfixTemplate
public int hashCode()
hashCode
in class PostfixTemplate