public class ScratchUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasMatchingExtension(Project project,
VirtualFile file) |
static boolean |
isScratch(VirtualFile file)
Returns true if a file or a directory is in one of scratch roots: scratch, console, etc.
|
static void |
updateFileExtension(Project project,
VirtualFile file) |
public static boolean isScratch(VirtualFile file)
RootType
,
ScratchFileService
public static void updateFileExtension(Project project, VirtualFile file) throws java.io.IOException
java.io.IOException
public static boolean hasMatchingExtension(Project project, VirtualFile file)