|Re: commands vs actions [message #511631 is a reply to message #511518]
||Tue, 02 February 2010 05:47
Registered: July 2009
Am 01.02.2010 21:50, schrieb Luca Ferrari:|
> I cannot really understand if there is any functional difference between
> a command and an IAction/IActionDelegate. I mean, is there any place
> where you must use actions or any action can be substituted by a command?
The only place so far that I found in RCP apps where you must use
actions is some of the Workbench build in actions.
I.e. While it easy to replace exit and preferences action with
appropriate command. I haven't till now found a way to replace the Help
Action. (though probably one just has to contribute an appropriate handler.)
Though on self implemented stuff I have never seen an ocasion to look back.
and if you ever need to create commands on the fly with full control
over anything and you seem unable to do with declaration from plugin.xml
there is still the CompoundContributionItem.
Powered by FUDForum
. Page generated in 0.02035 seconds