public class TemplateDataLanguagePusher extends java.lang.Object implements FilePropertyPusher<Language>
FilePropertyPusher.Engine
Modifier and Type | Field and Description |
---|---|
static Key<Language> |
KEY |
EP_NAME
Constructor and Description |
---|
TemplateDataLanguagePusher() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDirectory(VirtualFile file,
Project project) |
boolean |
acceptsFile(VirtualFile file) |
void |
afterRootsChanged(Project project) |
Language |
getDefaultValue() |
Key<Language> |
getFileDataKey() |
Language |
getImmediateValue(Module module) |
Language |
getImmediateValue(Project project,
VirtualFile file) |
void |
persistAttribute(Project project,
VirtualFile fileOrDir,
Language value) |
boolean |
pushDirectoriesOnly() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptsFile, initExtra, initExtra
public Key<Language> getFileDataKey()
getFileDataKey
in interface FilePropertyPusher<Language>
public boolean pushDirectoriesOnly()
pushDirectoriesOnly
in interface FilePropertyPusher<Language>
public Language getDefaultValue()
getDefaultValue
in interface FilePropertyPusher<Language>
public Language getImmediateValue(Project project, VirtualFile file)
getImmediateValue
in interface FilePropertyPusher<Language>
public Language getImmediateValue(Module module)
getImmediateValue
in interface FilePropertyPusher<Language>
public boolean acceptsFile(VirtualFile file)
acceptsFile
in interface FilePropertyPusher<Language>
public boolean acceptsDirectory(VirtualFile file, Project project)
acceptsDirectory
in interface FilePropertyPusher<Language>
public void persistAttribute(Project project, VirtualFile fileOrDir, Language value) throws java.io.IOException
persistAttribute
in interface FilePropertyPusher<Language>
java.io.IOException
public void afterRootsChanged(Project project)
afterRootsChanged
in interface FilePropertyPusher<Language>