public interface CreateFromTemplateHandler
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<CreateFromTemplateHandler> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(PsiDirectory [] dirs) |
default java.lang.String |
commandName(FileTemplate template) |
PsiElement |
createFromTemplate(Project project,
PsiDirectory directory,
java.lang.String fileName,
FileTemplate template,
java.lang.String templateText,
java.util.Map<java.lang.String,java.lang.Object> props) |
java.lang.String |
getErrorMessage() |
boolean |
handlesTemplate(FileTemplate template) |
boolean |
isNameRequired() |
void |
prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
default void |
prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props,
java.lang.String fileName,
FileTemplate template) |
static final ExtensionPointName<CreateFromTemplateHandler> EP_NAME
boolean handlesTemplate(FileTemplate template)
PsiElement createFromTemplate(Project project, PsiDirectory directory, java.lang.String fileName, FileTemplate template, java.lang.String templateText, java.util.Map<java.lang.String,java.lang.Object> props) throws IncorrectOperationException
IncorrectOperationException
boolean canCreate(PsiDirectory [] dirs)
boolean isNameRequired()
java.lang.String getErrorMessage()
void prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props)
default void prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props, java.lang.String fileName, FileTemplate template)
default java.lang.String commandName(FileTemplate template)