开发者

Eclipse RCP menu reutilization

While I was developing the main menu of my app I realized that there are submenues in that main menu that could be use as it in other context menu. My problem is that I dont want to write these submenues twice one for the main menu and then for the popup.

Googling a lot the only way I found was to use dynamic menus. In that case I need to write a class that implement the dynamic menu and it could be use in the main menu and in the popup menu.

Althought it work I would开发者_运维问答 like to have a way to reuse menu definitions using just the plugin.xml. Is it posible?


If you use the menus extension point, then it is pretty easy to add the same sub-menu to the main menu and a popup menu...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜