Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » SaveAll Command
SaveAll Command [message #855194] Tue, 24 April 2012 11:44 Go to next message
Eclipse UserFriend
Hi,

i am creating an RCP application which will contain multiple editors. editors will implement the doSave method to save them but i want to add SaveAll command (org.eclipse.ui.file.saveAll) as i need to do some extra stuff on Save All (i need to create few confugration files).

If I try to define my own handler for that then i get the error message

!MESSAGE Conflict for 'org.eclipse.ui.file.saveAll':
HandlerActivation(commandId=org.eclipse.ui.file.saveAll,
handler=com.test.main.SaveAllHandler,
expression=,sourcePriority=0)

What is the right way to implement this?

Thank!

Cheers!

[Updated on: Tue, 24 April 2012 11:44] by Moderator

Re: SaveAll Command [message #856107 is a reply to message #855194] Wed, 25 April 2012 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Where are you registering your save all handler? Is your ActionBarAdvisor still adding org.eclipse.ui.actions.ActionFactory.SAVE_ALL?

PW
Re: SaveAll Command [message #856240 is a reply to message #856107] Wed, 25 April 2012 09:50 Go to previous messageGo to next message
Eclipse UserFriend
I am declaring the command in extension section of plugin.xml and i have added handler to org.eclipse.ui.file.saveAll command as well.
Re: SaveAll Command [message #857357 is a reply to message #856240] Thu, 26 April 2012 09:28 Go to previous message
Eclipse UserFriend
And what is your ActionBarAdvisor doing?

PW
Previous Topic:How can I register a paste command handler in PageDesignerEditor?
Next Topic:OpenCheatSheetHandler
Goto Forum:
  


Current Time: Tue Jul 22 19:20:53 EDT 2025

Powered by FUDForum. Page generated in 0.05974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top