Catching the "Save All" action

Hi,

Is it possible to be notified when the "Save All" action is performed? My plugin has a custom editor that need to save the content of its file when the user click on the "Save All" button.

Regards,

Jean

6 comments
Comment actions Permalink

Be aware that the average IDEA user rarely presses the 'Save All' button, in fact I don't remember having it pressed at all during the last couple of years. Most probably there's a more appropriate event to hook into, something which is triggered also if files are saved because of frame deactivation etc.

0
Comment actions Permalink

Yes, that's right. Currently I'm saving the content on frame deactivation but users reported that they were surprised that the Save All button didn't save the plugin content to the disk.

But as you say, if there is a more generic way to get notified when the plugin should save its content, that would be great.

0
Comment actions Permalink

Implement SettingsSavingComponent?

0
Comment actions Permalink

Yes, that worked. Thanks.

0
Comment actions Permalink

Implement SettingsSavingComponent?


But SettingsSavingComponent.save() is not invoked when doing a "Make Project", which only saves modified documents...

0
Comment actions Permalink

Apparently, yes. So is there a way to get notified when a project is built?

0

Please sign in to leave a comment.