I have a popup menu that works, adjusting its content based on the state
of the application. I'd like to reuse this code by adding its content to
a menu on the MenuBar. I feel like my round peg just won't fit this
square hole...
The popup menu extends ActionDelegate. In the RCP Mail example's
ApplicationActionBarAdvisor.fillMenuBar method I've created a MenuManager
and added it to the menuBar, but now want to add my "dynamic" menu that
extends ActionDelegate to this menu manager so when people select the new
menu, they see the dynamic content provided by my action delegate.
I'm sure I'm missing something very basic -- how to add the content of my
popup menu as a "normal" menu off the main menubar (e.g., as a peer to
File or Help). Thanks in advance for your help.