I created the menu item in the "File" menu as a command. For this command there is a handler implementing the IHandler
interface. This handler contains the isEnabled
method. I am trying to use this method to enable/disable my menu item, but that method is called only once when I click on the "File" menu. When clicked for the second, third etc. times, the isEnabled
method is not called again even if I changed the state of page (open/close editors) before.
What should I do? Maybe this method is not intended for control menu items?