Menu

onSave hook

2008-02-11
2013-03-15
  • Oliver Frietsch

    Oliver Frietsch - 2008-02-11

    Hi,

    I'd like to run the Python re-indent script on every save. PyDev Scripting seams to be a good choice for that. However, I'm not sure about one thing:

    http://fabioz.com/pydev/manual_articles_scripting.html says "onSave: want to do something when the PyEdit saves its content? That's your chance..."

    So WHEN is it called exactly? Before the save? When the save is fired? Or after the save? I mean, can I trust on the file already been written completely to disk once I get the "onSave" event?

    Thank you,
    Oliver

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2008-02-13

      It's called after the save.

      Cheers,

      Fabio