public abstract class PostfixTemplatesUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONDITION_TAG |
static java.lang.String |
CONDITIONS_TAG |
static java.lang.String |
TOPMOST_ATTR |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateTemplateId(java.lang.String templateKey,
PostfixTemplateProvider provider) |
static java.util.Set<PostfixTemplate> |
getAvailableTemplates(PostfixTemplateProvider provider)
Returns all templates registered in the provider, including the edited templates and builtin templates in their current state
|
static <T extends PostfixTemplateExpressionCondition> |
readExternalConditions(Element template,
Function<? super Element,? extends T> conditionFactory) |
static TemplateImpl |
readExternalLiveTemplate(Element template,
PostfixTemplateProvider provider) |
static boolean |
readExternalTopmostAttribute(Element template) |
static void |
showErrorHint(Project project,
Editor editor) |
static TextRange |
surround(Surrounder surrounder,
Editor editor,
PsiElement expr) |
static void |
writeExternalTemplate(PostfixTemplate template,
Element parentElement) |
public static final java.lang.String CONDITION_TAG
public static final java.lang.String CONDITIONS_TAG
public static final java.lang.String TOPMOST_ATTR
public static java.util.Set<PostfixTemplate> getAvailableTemplates(PostfixTemplateProvider provider)
public static TextRange surround(Surrounder surrounder, Editor editor, PsiElement expr)
public static java.lang.String generateTemplateId(java.lang.String templateKey, PostfixTemplateProvider provider)
public static void writeExternalTemplate(PostfixTemplate template, Element parentElement)
public static <T extends PostfixTemplateExpressionCondition> java.util.Set<T> readExternalConditions(Element template, Function<? super Element,? extends T> conditionFactory)
public static TemplateImpl readExternalLiveTemplate(Element template, PostfixTemplateProvider provider)
public static boolean readExternalTopmostAttribute(Element template)