From 78a47f83c11505fa1b2c80e355283966e61c667e Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Wed, 16 Sep 2009 13:28:22 +0400 Subject: [PATCH] fileForDocumentCheckedOutSuccessfully #2 --- python/src/com/jetbrains/python/psi/PyUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 14df8cb887e6..4184f8cef9c8 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -54,7 +54,7 @@ public class PyUtil { if (doc == null) { return; } - if (!FileDocumentManager.getInstance().fileForDocumentCheckedOutSuccessfully(doc, element.getProject())) { + if (!FileDocumentManager.getInstance().requestWriting(doc, element.getProject())) { throw new IllegalStateException(); } }