Skip to main content


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 15:44 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 15:44]

Report message to a moderator

Re: SaveAll Command [message #856107 is a reply to message #855194] Wed, 25 April 2012 11:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
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 13:50 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 13:28 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Tue Apr 16 22:37:19 GMT 2024

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

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

Back to the top