Skip to main content


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 20:50 Go to next message
Luca Ferrari is currently offline Luca FerrariFriend
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 06:34 Go to previous messageGo to next message
Michael Golovanov is currently offline Michael GolovanovFriend
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 07:47 Go to previous messageGo to next message
martin is currently offline martinFriend
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 10:47 Go to previous message
Christian is currently offline ChristianFriend
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: Thu Apr 25 12:36:09 GMT 2024

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

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

Back to the top