plugin_components.md: adjust heading

This commit is contained in:
Yann Cébron 2022-01-19 16:13:29 +01:00
parent f2158e702c
commit 1735457c2f
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ Use [`RunOnceUtil`](upsource:///platform/core-api/src/com/intellij/ide/util/RunO
## Application Events
Application lifecycle events can be tracked via [`AppLifecycleListener`](upsource:///platform/platform-impl/src/com/intellij/ide/AppLifecycleListener.java) [listener](plugin_listeners.md).
See also [](plugin_components.md#application-startup) and [](plugin_components.md#application-project-close).
See also [](plugin_components.md#application-startup) and [](plugin_components.md#project-and-application-close).
Register [`ApplicationActivationListener`](upsource:///platform/ide-core/src/com/intellij/openapi/application/ApplicationActivationListener.java) [listener](plugin_listeners.md) to be notified of "application focused/unfocused" events.

View File

@ -54,6 +54,6 @@ Access to indices must be wrapped with `DumbService`, see also [General Threadin
See also [Running Tasks Once](ide_infrastructure.md).
### Application/Project Close
### Project and Application Close
To execute code on project closing or application shutdown, implement the `Disposable` interface in a [Service](plugin_services.md) and place the code in the `dispose()` method. Alternatively, use `Disposer.register()` passing a `Project` or `Application` service instance as the `parent` argument (see [Choosing a Disposable Parent](disposers.md#choosing-a-disposable-parent)).