Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » SaveAll Command
SaveAll Command [message #855194] Tue, 24 April 2012 11:44 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
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]

Report message to a 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
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
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
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Fri Aug 29 18:26:16 EDT 2014

Powered by FUDForum. Page generated in 0.02052 seconds