public abstract class PostfixTemplateWithExpressionSelector extends PostfixTemplate
Modifier | Constructor and Description |
---|---|
protected |
PostfixTemplateWithExpressionSelector(java.lang.String name,
java.lang.String example,
PostfixTemplateExpressionSelector selector)
|
protected |
PostfixTemplateWithExpressionSelector(java.lang.String name,
java.lang.String key,
java.lang.String example,
PostfixTemplateExpressionSelector selector)
|
protected |
PostfixTemplateWithExpressionSelector(java.lang.String id,
java.lang.String name,
java.lang.String example,
PostfixTemplateExpressionSelector selector,
PostfixTemplateProvider provider) |
protected |
PostfixTemplateWithExpressionSelector(java.lang.String id,
java.lang.String name,
java.lang.String key,
java.lang.String example,
PostfixTemplateExpressionSelector selector,
PostfixTemplateProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
expand(PsiElement context,
Editor editor) |
protected abstract void |
expandForChooseExpression(PsiElement expression,
Editor editor) |
boolean |
isApplicable(PsiElement context,
Document copyDocument,
int newOffset) |
protected void |
prepareAndExpandForChooseExpression(PsiElement expression,
Editor editor) |
boolean |
startInWriteAction() |
calcDescription, equals, getDescription, getExample, getId, getKey, getPresentableName, getProvider, hashCode, isBuiltin, isEditable, isEnabled
@Deprecated protected PostfixTemplateWithExpressionSelector(java.lang.String name, java.lang.String key, java.lang.String example, PostfixTemplateExpressionSelector selector)
@Deprecated protected PostfixTemplateWithExpressionSelector(java.lang.String name, java.lang.String example, PostfixTemplateExpressionSelector selector)
protected PostfixTemplateWithExpressionSelector(java.lang.String id, java.lang.String name, java.lang.String example, PostfixTemplateExpressionSelector selector, PostfixTemplateProvider provider)
protected PostfixTemplateWithExpressionSelector(java.lang.String id, java.lang.String name, java.lang.String key, java.lang.String example, PostfixTemplateExpressionSelector selector, PostfixTemplateProvider provider)
public final boolean isApplicable(PsiElement context, Document copyDocument, int newOffset)
isApplicable
in class PostfixTemplate
public final void expand(PsiElement context, Editor editor)
expand
in class PostfixTemplate
protected void prepareAndExpandForChooseExpression(PsiElement expression, Editor editor)
public boolean startInWriteAction()
startInWriteAction
in class PostfixTemplate
protected abstract void expandForChooseExpression(PsiElement expression, Editor editor)