mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
adds more clarifying comments to setReadOnlyAttribute call
This commit is contained in:
+3
-1
@@ -186,7 +186,9 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
PsiFile file = getFile();
|
||||
WriteAction.run(() -> {
|
||||
try {
|
||||
// Test that action will automatically clear the read-only attribute if modification is necessary
|
||||
// Test that action will automatically clear the read-only attribute if modification is necessary.
|
||||
// If your test fails due to this, make sure that your quick-fix/intention has the following line:
|
||||
// if (!FileModificationService.getInstance().prepareFileForWrite(file)) return;
|
||||
ReadOnlyAttributeUtil.setReadOnlyAttribute(file.getVirtualFile(), true);
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user