project.md: note ProjectManagerListener

This commit is contained in:
Yann Cébron 2022-04-14 12:39:55 +02:00
parent dbc2b53a89
commit cdf7e1832f

View File

@ -121,3 +121,7 @@ project.getMessageBus().connect().subscribe(ProjectTopics.PROJECT_ROOTS,
If targeting 2019.3 or later, [declarative registration](plugin_listeners.md) is available as well.
The event only notifies that something has changed; if more details are needed about what changes have occurred, keep a copy of the state of the project structure model which is relevant, and to compare it with the state after the change.
## Receiving Notification About Project Close/Open Events
Use [`ProjectManagerListener`](upsource:///platform/projectModel-api/src/com/intellij/openapi/project/ProjectManagerListener.java) [listener](plugin_listeners.md)