简体   繁体   English

Eclipse RCP 插件 inheritance

[英]Eclipse RCP plugin inheritance

I am creating an Eclipse RCP application and have multiple plugins that share the same menus and commands.我正在创建一个 Eclipse RCP 应用程序,并且有多个共享相同菜单和命令的插件。 Is it possible to have the plugins extend one central plugin so that I don't have to program the same menus and commands for each plugin that uses them?是否可以让插件扩展一个中央插件,这样我就不必为使用它们的每个插件编写相同的菜单和命令? If so, how can I do it?如果是这样,我该怎么做?

Add menu-command-handler of eclipse, actionSet is outdated添加 eclipse 的 menu-command-handler,actionSet 已过时

Just let your "annex" plugins depends on the central one (exporting required packages).只需让您的“附件”插件依赖于中央插件(导出所需的包)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM