What are differences between Actions and Commands in the context of Eclipse RCP? I know that they both contribute to the menu entries, but which one is better? And why?
Of all the online resources I read, I could not get a firm understanding of the differences between both. I have not actually tried to use them, but just wanted to understand them to start with from higher level point of view.
Thanks
And remember that Action may be deprecated on later version of Eclipse. I'd suggest you to use Command from the beginning.
Did you read the eclipse wiki FAQ What is the difference between a command and an action?
This article details the differences
Actions:
Commands involve more extension points, but:
Just adding to VonC's excellent answer, commands might be a little overkill if your application is relatively small. They are relatively harder to setup, and they shine the most when you have multiple perspectives, editors and views.
For something simple, I would go with actions.