1

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?

greg-449
  • 109,219
  • 232
  • 102
  • 145
Darksmilie
  • 193
  • 1
  • 11

1 Answers1

0

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
}
greg-449
  • 109,219
  • 232
  • 102
  • 145