mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
Plugin listeners: cleanup
This commit is contained in:
parent
7b47a22bad
commit
0535711914
@ -2,7 +2,7 @@
|
|||||||
title: Plugin Listeners
|
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
|
_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
|
[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.
|
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 `class` attribute specifies the class in your plugin that implements the listener interface and receives
|
||||||
the events.
|
the events.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user