Event Descriptions
From Informatics
This page serves to document the events and associated event handlers (if they exist) in geworkbench.
# | Event Name | Description | Handler |
---|---|---|---|
1 | ProjectNodeAddedEvent | When a node is added to the project panel, event is published. | ProjectNodeAddedEventHandler. |
2 |
To use events, see How to throw/catch events in geWorkbench
To trace the events, see How to trace events in geWorkbench
This page was not close to be complete. I think a more important piece of information is not how but when and whether to use event publishing/subscription as the communication mechanism between components and between components and core.
- the scenario when we probably should use event publishing/subscription:
- the subscribers are potentially to be multiple
- the subscribers are unknown to the publisher in advence
- the scenario when we probably should not user event publishing/subscription
- the subscriber is one known component. even more so when the subscriber is a class in the core, e.g. ProjectPanel.
- from the subscriber's pointer of view, be cautious if you want to do something slow when you receive the event, especially in synchronous mode.