You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MessageBus is used to fire events but these should be restricted to the current project not the full IDEA application.
project.getMessageBus();
The difference between `Application.getMessageBus()` and `Project.getMessageBus()`
in IntelliJ IDEA lies in their scope and usage:
1. **Application.getMessageBus()**:
- This message bus is associated with the entire IntelliJ IDEA application.
- It is used for application-wide events and communication.
- Services and components that need to communicate across the entire application should use this message bus.
2. **Project.getMessageBus()**:
- This message bus is associated with a specific project within IntelliJ IDEA.
- It is used for project-specific events and communication.
- Services and components that need to communicate within the context of a single project should use this message bus.
In summary, `Application.getMessageBus()` is for global communication across the entire application, while `Project.getMessageBus()` is for communication within a specific project.
The text was updated successfully, but these errors were encountered:
To add my stone : there is a com.devoxx.genie.ui.util.NotificationUtil class so shouldn't we refactor all those calls in that Util class in some kind of connect() method?
@stephanj i'm currently looking at this one i feel that panel/listener get connection and suscribing should implement a dispose method
I suggest to create a MessageBusUtil class with connect, suscribe and publish method at Project level (and not Application as initially posted), i'm looking at this
The MessageBus is used to fire events but these should be restricted to the current project not the full IDEA application.
The text was updated successfully, but these errors were encountered: