Enabling and Disabling Actions

When you disable an Action associated with both a menu item
and a button...


Sharing the same Action allows menu items and toolbar buttons
to share the same state and call the same methods.

Unfortunately, they also share the same text, icon, mnemonic, and
tool tip, and the methods they call cannot be dynamically changed.