From f1e9b5fb4b72e1c4ea58eabdf414c574d6d55030 Mon Sep 17 00:00:00 2001 From: Maarten Coene <4728619+maartenc@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:12:03 +0200 Subject: [PATCH] Fixed deprecation warning about ActionUpdateThread.OLD_EDT in IntelliJ IDEA 2024.2 --- CHANGELOG.md | 3 ++- .../org/clarent/ivyidea/ResolveForActiveModuleAction.java | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e646703..33af903c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,10 @@ ## [Unreleased] - Upgraded Apache Ivy to 2.5.2 to address the CVE-2022-46751 vulnerability - rebased build on [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template) +- Fixed deprecation warning about ActionUpdateThread.OLD_EDT in IntelliJ IDEA 2024.2 ## [1.0.17] -- Upgraded Apache Ivy to 2.5.1 to address the CVE-2022-37865 and CVE-2022-37866 vulnerabilities. +- Upgraded Apache Ivy to 2.5.1 to address the CVE-2022-37865 and CVE-2022-37866 vulnerabilities ## [1.0.16] - Upgraded internal Apache Ivy to 2.5.0 diff --git a/src/main/java/org/clarent/ivyidea/ResolveForActiveModuleAction.java b/src/main/java/org/clarent/ivyidea/ResolveForActiveModuleAction.java index ddd7bc26..632e5e91 100644 --- a/src/main/java/org/clarent/ivyidea/ResolveForActiveModuleAction.java +++ b/src/main/java/org/clarent/ivyidea/ResolveForActiveModuleAction.java @@ -16,6 +16,7 @@ package org.clarent.ivyidea; +import com.intellij.openapi.actionSystem.ActionUpdateThread; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.LangDataKeys; import com.intellij.openapi.actionSystem.Presentation; @@ -75,4 +76,9 @@ private void updatePresentation(Presentation presentation, Module activeModule) presentation.setEnabled(linkEnabled); presentation.setVisible(linkEnabled); } + + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.EDT; + } }