java - Eclipse E4 RCP - Get IEventBroker object after part created -
when application starts, 1 of parts not visible yet. when use handler send data, , open part, i'm having trouble getting data when part creates. if click on part upon starting application, , use handler again, part recieve data. how part receive data when not yet visible, or when created. how data sent earlier.
ieventbroker not retain data broadcasts.
the class part not created until made visible (rendered more accurate) - have store things somewhere else.
you use sort of 'manager' class hold data. handler can put data in manager , part can retrieve manager.
one way manager use creatable singleton:
@creatable @singleton public class mymananger { ... }
this can injected in handler , part , same single instance of manager.
Comments
Post a Comment