Eclipse Luna: Handlers' @CanExecute methods not called

前端 未结 1 1051
小鲜肉
小鲜肉 2021-01-14 14:08

I\'m having a problem with command handlers in Eclipse Luna RCP.

In my E4 application model, I defined some commands and related handlers that must be enabled only u

相关标签:
1条回答
  • 2021-01-14 14:19

    This is a design change in Eclipse Luna described in bug 427465, also 436755

    You can get the toolbar @CanExecute methods run using:

    eventBroker.send(UIEvents.REQUEST_ENABLEMENT_UPDATE_TOPIC, UIEvents.ALL_ELEMENT_ID);
    

    'eventBroker' is the IEventBroker.

    0 讨论(0)
提交回复
热议问题