public class ListTemplatesHandler extends java.lang.Object implements CodeInsightActionHandler
Constructor and Description |
---|
ListTemplatesHandler() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<TemplateImpl,java.lang.String> |
filterTemplatesByPrefix(java.util.Collection<? extends TemplateImpl> templates,
Editor editor,
int offset,
boolean fullMatch,
boolean searchInDescription) |
static MultiMap<java.lang.String,CustomLiveTemplateLookupElement> |
getCustomTemplatesLookupItems(Editor editor,
PsiFile file,
int offset) |
void |
invoke(Project project,
Editor editor,
PsiFile file) |
static void |
showTemplatesLookup(Project project,
Editor editor,
java.util.Map<TemplateImpl,java.lang.String> template2Argument) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
startInWriteAction
public void invoke(Project project, Editor editor, PsiFile file)
invoke
in interface CodeInsightActionHandler
public static java.util.Map<TemplateImpl,java.lang.String> filterTemplatesByPrefix(java.util.Collection<? extends TemplateImpl> templates, Editor editor, int offset, boolean fullMatch, boolean searchInDescription)
public static MultiMap<java.lang.String,CustomLiveTemplateLookupElement> getCustomTemplatesLookupItems(Editor editor, PsiFile file, int offset)
public static void showTemplatesLookup(Project project, Editor editor, java.util.Map<TemplateImpl,java.lang.String> template2Argument)