Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 30 19:21:27 EDT 2025

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

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

Back to the top