public final class ScratchRootType extends RootType
Modifier and Type | Method and Description |
---|---|
VirtualFile |
createScratchFile(Project project,
java.lang.String fileName,
Language language,
java.lang.String text) |
VirtualFile |
createScratchFile(Project project,
java.lang.String fileName,
Language language,
java.lang.String text,
ScratchFileService.Option option) |
static ScratchRootType |
getInstance() |
javax.swing.Icon |
substituteIcon(Project project,
VirtualFile file) |
Language |
substituteLanguage(Project project,
VirtualFile file) |
containsFile, fileClosed, fileOpened, findByClass, findById, findFile, forFile, getAllRootTypes, getDisplayName, getId, isHidden, isIgnored, registerTreeUpdater, substituteName
public static ScratchRootType getInstance()
public Language substituteLanguage(Project project, VirtualFile file)
substituteLanguage
in class RootType
public javax.swing.Icon substituteIcon(Project project, VirtualFile file)
substituteIcon
in class RootType
public VirtualFile createScratchFile(Project project, java.lang.String fileName, Language language, java.lang.String text)
public VirtualFile createScratchFile(Project project, java.lang.String fileName, Language language, java.lang.String text, ScratchFileService.Option option)