Eclipse RCP: Actions VS Commands

前端 未结 3 987
半阙折子戏
半阙折子戏 2020-12-01 03:04

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?

3条回答
  •  佛祖请我去吃肉
    2020-12-01 03:31

    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.

提交回复
热议问题