How to programmatically invoke Save All command? [message #331024] |
Thu, 21 August 2008 14:50 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: nick.allen.onlinehome.de
Hi,
In my plug-in I have registered a number of command handlers that invoke
OS commands. I would like to ensure that all files in Eclipse have been
saved to disk before doing so (to make sure the commands work on the
most recent data).
Can anyone point me in the right direction?
Thanks,
Nicholas Allen
|
|
|
|
Re: How to programmatically invoke Save All command? [message #331029 is a reply to message #331026] |
Thu, 21 August 2008 16:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: nick.allen.onlinehome.de
Thanks for the feedback. saveAllEditors is not a static method so how do
I obtain a pointer to an IWorkbenchPage from with my command handler
execute method? I'm sorry if that is a silly question - I am completely
new to Eclipse plugins.
Thanks,
Nick
Francis Upton (News) wrote:
> I found this by looking at ActionFactory.SAVE_ALL, going to the
> SaveAllAction and looking at it's run method.
>
> Call WorkbenchPage.saveAllEditors()
>
> Francis
>
> Nicholas Allen wrote:
>> Hi,
>>
>> In my plug-in I have registered a number of command handlers that invoke
>> OS commands. I would like to ensure that all files in Eclipse have been
>> saved to disk before doing so (to make sure the commands work on the
>> most recent data).
>>
>> Can anyone point me in the right direction?
>>
>> Thanks,
>>
>> Nicholas Allen
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03522 seconds