How to ensure that all modified files in project saved to fs from plugin?
Answered
I found that I can call project method for that
com.intellij.openapi.project.Project.save(isForce = false)
is that right approach?
Please sign in to leave a comment.
The `Project.save()` method writes project configuration files (roughly, *.iml and the ones under .idea/). To write other files, use `FileDocumentManager.getInstance().saveAllDocuments()`.
(minor clarification: the method `Project.save()` doesn't have any parameters; the one with the boolean parameter belongs to the `ProjectEx` class; of the two, better use the former)
Thx, when I tried to use it, it fails with:
What does it mean?
Please see first paragraph here http://www.jetbrains.org/intellij/sdk/docs/basics/architectural_overview/general_threading_rules.html
Wow. Now I see my problem, thx.