From 556fef18f25c701505fe3ab9ed99407a0b110d1f Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 29 Aug 2024 10:13:21 +0200 Subject: [PATCH] Replace deprecated EditorNotifications.Provider with EditorNotificationProvider --- topics/reference_guide/project_model/sdk.md | 2 +- topics/ui/controls/banner.md | 2 +- topics/user_interface_components/notifications.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/topics/reference_guide/project_model/sdk.md b/topics/reference_guide/project_model/sdk.md index dbe22d6ef..0fb133f70 100644 --- a/topics/reference_guide/project_model/sdk.md +++ b/topics/reference_guide/project_model/sdk.md @@ -122,6 +122,6 @@ Within `DemoProjectSdkSetupValidator`: * `getFixHandler()` returns an `EditorNotificationPanel.ActionHandler` that enables the user to execute a quick fix to resolve the validation issue. > `ProjectSdkSetupValidator` will not work in IntelliJ Platform-based IDEs such as PyCharm. -> In such cases, you should register an implementation of [`EditorNotifications.Provider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotifications.java) at the `com.intellij.editorNotificationProvider` extension point and override the `createNotificationPanel()` method with the conditionality and panel setup you want. +> In such cases, you should register an implementation of [`EditorNotificationProvider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotificationProvider.java) at the `com.intellij.editorNotificationProvider` extension point and override the `createNotificationPanel()` method with the conditionality and panel setup you want. > {style="warning"} diff --git a/topics/ui/controls/banner.md b/topics/ui/controls/banner.md index 89ecdfecf..eca088bd7 100644 --- a/topics/ui/controls/banner.md +++ b/topics/ui/controls/banner.md @@ -6,7 +6,7 @@ -**Implementation:** [`EditorNotifications.Provider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotifications.java) +**Implementation:** [`EditorNotificationProvider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotificationProvider.java) **Related:** [](notifications.md#editor-banner) diff --git a/topics/user_interface_components/notifications.md b/topics/user_interface_components/notifications.md index 6eb18cf0d..f19c77b1a 100644 --- a/topics/user_interface_components/notifications.md +++ b/topics/user_interface_components/notifications.md @@ -31,7 +31,7 @@ For UI reference, see [](banner.md) in UI Guidelines. Notifications that appear at the top of the file editor are a great way to ask the user to take an important action that would otherwise impede their experience if ignored (e.g., missing SDK, setup/project configuration requiring user input). -Register an implementation of [`EditorNotifications.Provider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotifications.java) using `com.intellij.editorNotificationProvider` extension point. +Register an implementation of [`EditorNotificationProvider`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotificationProvider.java) using `com.intellij.editorNotificationProvider` extension point. If access to indexes is not required, it can be marked [dumb aware](indexing_and_psi_stubs.md#DumbAwareAPI). A commonly used UI implementation is [`EditorNotificationPanel`](%gh-ic%/platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java).