We have a plugin that opens a browser. The user might be making some changes to some file and then launching a special html file via a keyboard shortcut.
Sometimes the changes made by the user doesn't show up in the browser. We do a saveAll like this:
but that only helps partially. Reloading the browser helps and walking around in the document a bit before invoking the keyboard shortcut also seem to help.
I'm guessing that the browser is launched so quickly that IDEA doesn't have time to save the document that the web page relies on and that the saveAll is made async.
It makes sense with all the background processing implemented in v9 and this was never a problem for us in IDEA 7.
Is there a way to force the save synchronically?
Is there some event I can listen to so I know that the saveAll has indeed been completed?