mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
check for read-only on the file where we are going to start a template (EA-32871 - ROME: DocumentImpl.deleteString)
This commit is contained in:
@@ -191,7 +191,7 @@ public class VariableInplaceRenamer {
|
||||
return false; // Should have valid local search scope for inplace rename
|
||||
}
|
||||
//no need to process further when file is read-only
|
||||
if (!CommonRefactoringUtil.checkReadOnlyStatus(myProject, myElementToRename)) return true;
|
||||
if (!CommonRefactoringUtil.checkReadOnlyStatus(myProject, containingFile)) return true;
|
||||
|
||||
myEditor.putUserData(INPLACE_RENAMER, this);
|
||||
ourRenamersStack.push(this);
|
||||
|
||||
Reference in New Issue
Block a user