Sopot Cela Messages: 597 Registered: December 2010
Peeyush Deshpande wrote on Tue, 02 April 2013 12:25
I am using SWT with eclipse 4. I have created two parts. I have a SWT button in first part and on its click event I want to add a new button on the second part.
Use the IEventBroker to publish an event on the bus when the first button is called and have the second part register a listener method through DI (@UIEventTopic etc.) and add the second button in this method. This way you have no coupling whatsoever between parts and composites.