Switch Image of a Handler in a e4 rcp
问题 I have an e4 rcp application and I want to extend my application with a toolbar item that should change the icon URL when the user execute it. Is there any possibility to do this as I can do it in a MPart? 回答1: Just call the setIconURI method of MToolItem in your handler for the tool item: @Execute public void execute(MToolItem mitem) { mitem.setIconURI("platform:/plugin/......"); ... other code } 来源: https://stackoverflow.com/questions/46191767/switch-image-of-a-handler-in-a-e4-rcp