I know this question has been asked before but it was in 2009 and I haven't found anything more recent either on the web. I was wondering if the answer in that still holds or can it be updated?
我知道这个问题之前已被问过,但是在2009年,我还没有在网上发现任何更新的问题。我想知道答案中的答案是否仍然存在或者是否可以更新?
I am just starting work on an RCP and I haven't been able to decide between actions and commands for my menu items. I will be using a lot of the ones provided by Eclipse such as the Edit, File and some of their sub menu items as well. Since it has been nearly two years for the answer provided in the '09 question, I just wanted to make sure there is nothing else that could sway my decision in either direction or maybe if there have been some new developments that I am not aware of.
我刚刚开始研究RCP,我无法在菜单项的操作和命令之间做出决定。我将使用Eclipse提供的许多内容,例如Edit,File和它们的一些子菜单项。由于在'09问题中提供答案已经将近两年了,我只是想确保没有任何其他方面可以影响我在任何一个方向上的决定,或者可能是否有一些我不了解的新发展。
2 个解决方案
#1
5
Since you are starting on RCP the Command Framework is the way to go. Actions are depcrecated and you should only have to use when working with existing applications.
由于您是从RCP开始的,因此Command Framework是您的最佳选择。操作已分离,您只需在使用现有应用程序时使用。
#2
0
Commnads framework is best. You can easily control the visibility of menues using commands.
Commnads框架是最好的。您可以使用命令轻松控制菜单的可见性。
#1
5
Since you are starting on RCP the Command Framework is the way to go. Actions are depcrecated and you should only have to use when working with existing applications.
由于您是从RCP开始的,因此Command Framework是您的最佳选择。操作已分离,您只需在使用现有应用程序时使用。
#2
0
Commnads framework is best. You can easily control the visibility of menues using commands.
Commnads框架是最好的。您可以使用命令轻松控制菜单的可见性。