[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Save handler when editing files not in workspace using eclipse default edito

Allan Ramirez wrote:
Thanks Paul.
Adding IExecutionListener to the ICommandService worked. However, clicking the save icon in the toolbar or clicking file->save menu, IExecutionListener was not executed.
I read your articles but I still can't find how to fire the codes when i click save icon in the toolbar or if i click file->save menu.

In 3.3 legacy actions (like SAVE) don't fire command execution events ... only using the keybinding will.


In 3.4 we added extra legacy support so clicking the button should also fire the same kind of events.

In 3.3 the other way around (in an RCP app, anyway) is to turn the SaveAction into a handler and make Save in the menu and toolbar a command contribution.

PW


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm