public class DefaultCreateFromTemplateHandler extends java.lang.Object implements CreateFromTemplateHandler
EP_NAME
Constructor and Description |
---|
DefaultCreateFromTemplateHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(PsiDirectory [] dirs) |
protected java.lang.String |
checkAppendExtension(java.lang.String fileName,
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) |
void |
prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props,
java.lang.String filename,
FileTemplate template) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commandName
public boolean handlesTemplate(FileTemplate template)
handlesTemplate
in interface CreateFromTemplateHandler
public 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
createFromTemplate
in interface CreateFromTemplateHandler
IncorrectOperationException
protected java.lang.String checkAppendExtension(java.lang.String fileName, FileTemplate template)
public boolean canCreate(PsiDirectory [] dirs)
canCreate
in interface CreateFromTemplateHandler
public boolean isNameRequired()
isNameRequired
in interface CreateFromTemplateHandler
public java.lang.String getErrorMessage()
getErrorMessage
in interface CreateFromTemplateHandler
public void prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props, java.lang.String filename, FileTemplate template)
prepareProperties
in interface CreateFromTemplateHandler
public void prepareProperties(java.util.Map<java.lang.String,java.lang.Object> props)
prepareProperties
in interface CreateFromTemplateHandler