Mariano
Mariano

Reputation: 21

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?

Upvotes: 2

Views: 164

Answers (1)

Tonny Madsen
Tonny Madsen

Reputation: 12718

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...

Upvotes: 0

Related Questions