mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-141164 Ability to generate code inferred annotations
abort when the file is non-writable
This commit is contained in:
@@ -84,7 +84,7 @@ public class MakeInferredAnnotationExplicit extends BaseIntentionAction {
|
||||
final Module module = ModuleUtilCore.findModuleForPsiElement(file);
|
||||
assert module != null;
|
||||
|
||||
FileModificationService.getInstance().preparePsiElementForWrite(owner);
|
||||
if (!FileModificationService.getInstance().preparePsiElementForWrite(owner)) return;
|
||||
|
||||
final JavaPsiFacade facade = JavaPsiFacade.getInstance(project);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user