public abstract class CreateFileFromTemplateAction extends CreateFromTemplateAction<PsiFile>
AnAction.TransparentUpdate
LOG
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
CreateFileFromTemplateAction(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon) |
CreateFileFromTemplateAction(java.util.function.Supplier<java.lang.String> dynamicText,
java.util.function.Supplier<java.lang.String> dynamicDescription,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
protected PsiFile |
createFile(java.lang.String name,
java.lang.String templateName,
PsiDirectory dir) |
protected PsiFile |
createFileFromTemplate(java.lang.String name,
FileTemplate template,
PsiDirectory dir) |
static PsiFile |
createFileFromTemplate(java.lang.String name,
FileTemplate template,
PsiDirectory dir,
java.lang.String defaultTemplateProperty,
boolean openFile) |
static PsiFile |
createFileFromTemplate(java.lang.String name,
FileTemplate template,
PsiDirectory dir,
java.lang.String defaultTemplateProperty,
boolean openFile,
java.util.Map<java.lang.String,java.lang.String> liveTemplateDefaultValues) |
actionPerformed, buildDialog, getActionName, getDefaultTemplateName, getDefaultTemplateProperty, getErrorTitle, isAvailable, moveCaretAfterNameIdentifier, postProcess, update
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
startInWriteAction
isDumbAware
public CreateFileFromTemplateAction(java.lang.String text, java.lang.String description, javax.swing.Icon icon)
public CreateFileFromTemplateAction(java.util.function.Supplier<java.lang.String> dynamicText, java.util.function.Supplier<java.lang.String> dynamicDescription, javax.swing.Icon icon)
protected PsiFile createFileFromTemplate(java.lang.String name, FileTemplate template, PsiDirectory dir)
public static PsiFile createFileFromTemplate(java.lang.String name, FileTemplate template, PsiDirectory dir, java.lang.String defaultTemplateProperty, boolean openFile)
public static PsiFile createFileFromTemplate(java.lang.String name, FileTemplate template, PsiDirectory dir, java.lang.String defaultTemplateProperty, boolean openFile, java.util.Map<java.lang.String,java.lang.String> liveTemplateDefaultValues)
protected PsiFile createFile(java.lang.String name, java.lang.String templateName, PsiDirectory dir)
createFile
in class CreateFromTemplateAction<PsiFile>