fileForDocumentCheckedOutSuccessfully

This commit is contained in:
Dmitry Avdeev
2009-09-16 13:01:00 +04:00
parent 1cbf0d2368
commit a6f9367c87
@@ -54,7 +54,7 @@ public class PyUtil {
if (doc == null) {
return;
}
if (!FileDocumentManager.getInstance().requestWriting(doc, element.getProject())) {
if (!FileDocumentManager.getInstance().fileForDocumentCheckedOutSuccessfully(doc, element.getProject())) {
throw new IllegalStateException();
}
}