mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
Plugin listeners: cleanup
This commit is contained in:
parent
7b47a22bad
commit
0535711914
@ -2,7 +2,7 @@
|
||||
title: Plugin Listeners
|
||||
---
|
||||
|
||||
> **NOTE** Defining listeners in `plugin.xml` is supported starting with the version 2019.3 of the platform.
|
||||
> **NOTE** Defining listeners in `plugin.xml` is supported starting with version 2019.3 of the platform.
|
||||
|
||||
_Listeners_ allow plugins to declaratively subscribe to events delivered through the
|
||||
[message bus](/reference_guide/messaging_infrastructure.md). You can define both application- and project-level
|
||||
@ -23,7 +23,7 @@ To define an application-level listener, add the following section to your `plug
|
||||
```
|
||||
|
||||
The `topic` attribute specifies the listener interface corresponding to the type of events you want to receive.
|
||||
Normally, this is the interface used as the type parameter of the `Topic` instance for the type of events.
|
||||
Normally, this is the interface used as the type parameter of the [`Topic`](upsource:///platform/extensions/src/com/intellij/util/messages/Topic.java) instance for the type of events.
|
||||
The `class` attribute specifies the class in your plugin that implements the listener interface and receives
|
||||
the events.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user