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:
anna
2011-12-29 15:35:39 +01:00
parent 260064faa7
commit 8484fde96f

View File

@@ -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);