Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » commands vs actions(is actiondelegate just a quick implementation of a command-like pattern?)
commands vs actions [message #511518] Mon, 01 February 2010 15:50 Go to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
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?
Re: commands vs actions [message #511575 is a reply to message #511518] Tue, 02 February 2010 01:34 Go to previous messageGo to next message
Michael Golovanov is currently offline Michael Golovanov
Messages: 37
Registered: October 2009
Member
Hi, Luca

Commands is newer implementation.

http:// wiki.eclipse.org/FAQ_What_is_the_difference_between_a_comman d_and_an_action%3F

Regards, Michael
Re: commands vs actions [message #511583 is a reply to message #511575] Tue, 02 February 2010 02:47 Go to previous messageGo to next message
martin is currently offline martin
Messages: 12
Registered: July 2009
Junior Member
Actions should be declared deprecated, don't use them anymore.
Re: commands vs actions [message #511631 is a reply to message #511518] Tue, 02 February 2010 05:47 Go to previous message
Christian is currently offline Christian
Messages: 72
Registered: July 2009
Member
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.

Christian
Previous Topic:INI file missing in the deployed RCP product
Next Topic:Project Navigator View
Goto Forum:
  


Current Time: Tue Jul 29 04:54:56 EDT 2014

Powered by FUDForum. Page generated in 0.02035 seconds