public class NonProjectFileWritingAccessProvider extends WritingAccessProvider
Modifier and Type | Class and Description |
---|---|
static class |
NonProjectFileWritingAccessProvider.UnlockOption |
EP, EP_NAME
Constructor and Description |
---|
NonProjectFileWritingAccessProvider(Project project) |
Modifier and Type | Method and Description |
---|---|
static void |
allowWriting(java.lang.Iterable<? extends VirtualFile> allowedFiles) |
static void |
allowWriting(VirtualFile... allowedFiles)
Deprecated.
|
static void |
disableChecksDuring(java.lang.Runnable runnable) |
static void |
enableChecksInTests(java.lang.Boolean honourRecentFiles,
Disposable disposable) |
static void |
enableChecksInTests(Disposable disposable) |
static boolean |
isWriteAccessAllowed(VirtualFile file,
Project project) |
java.util.Collection<VirtualFile> |
requestWriting(java.util.Collection<? extends VirtualFile> files) |
static void |
setCustomUnlocker(NullableFunction<? super java.util.List<VirtualFile>,NonProjectFileWritingAccessProvider.UnlockOption> unlocker) |
getReadOnlyMessage, isPotentiallyWritable, isPotentiallyWritable, requestWriting
public NonProjectFileWritingAccessProvider(Project project)
public static void setCustomUnlocker(NullableFunction<? super java.util.List<VirtualFile>,NonProjectFileWritingAccessProvider.UnlockOption> unlocker)
public java.util.Collection<VirtualFile> requestWriting(java.util.Collection<? extends VirtualFile> files)
requestWriting
in class WritingAccessProvider
files
- files to be checkedpublic static boolean isWriteAccessAllowed(VirtualFile file, Project project)
@Deprecated public static void allowWriting(VirtualFile... allowedFiles)
allowWriting(Iterable)
public static void allowWriting(java.lang.Iterable<? extends VirtualFile> allowedFiles)
public static void disableChecksDuring(java.lang.Runnable runnable)
public static void enableChecksInTests(Disposable disposable)
public static void enableChecksInTests(java.lang.Boolean honourRecentFiles, Disposable disposable)