public abstract class TemplateManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Topic<TemplateManagerListener> |
TEMPLATE_STARTED_TOPIC |
Constructor and Description |
---|
TemplateManager() |
Modifier and Type | Method and Description |
---|---|
abstract Template |
createTemplate(java.lang.String key,
java.lang.String group) |
abstract Template |
createTemplate(java.lang.String key,
java.lang.String group,
java.lang.String text) |
abstract boolean |
finishTemplate(Editor editor)
Finished a live template in the given editor, if it's present
|
abstract Template |
getActiveTemplate(Editor editor) |
static TemplateManager |
getInstance(Project project) |
abstract boolean |
startTemplate(Editor editor,
char shortcutChar) |
abstract void |
startTemplate(Editor editor,
java.lang.String selectionString,
Template template) |
abstract void |
startTemplate(Editor editor,
Template template) |
abstract void |
startTemplate(Editor editor,
Template template,
boolean inSeparateCommand,
java.util.Map<java.lang.String,java.lang.String> predefinedVarValues,
TemplateEditingListener listener) |
abstract void |
startTemplate(Editor editor,
Template template,
TemplateEditingListener listener) |
abstract void |
startTemplate(Editor editor,
Template template,
TemplateEditingListener listener,
PairProcessor<? super java.lang.String,? super java.lang.String> callback) |
public static final Topic<TemplateManagerListener> TEMPLATE_STARTED_TOPIC
public static TemplateManager getInstance(Project project)
public abstract void startTemplate(Editor editor, java.lang.String selectionString, Template template)
public abstract void startTemplate(Editor editor, Template template, TemplateEditingListener listener)
public abstract void startTemplate(Editor editor, Template template, boolean inSeparateCommand, java.util.Map<java.lang.String,java.lang.String> predefinedVarValues, TemplateEditingListener listener)
public abstract void startTemplate(Editor editor, Template template, TemplateEditingListener listener, PairProcessor<? super java.lang.String,? super java.lang.String> callback)
public abstract boolean startTemplate(Editor editor, char shortcutChar)
public abstract Template createTemplate(java.lang.String key, java.lang.String group)
public abstract Template createTemplate(java.lang.String key, java.lang.String group, java.lang.String text)
public abstract boolean finishTemplate(Editor editor)