From f42cd8b1e420d81b5471f72d04c97e2cfe77ac72 Mon Sep 17 00:00:00 2001 From: Carlos Zoido Date: Wed, 14 Aug 2024 18:12:26 +0200 Subject: [PATCH] Fix deprecated usage (#191) --- CHANGELOG.md | 4 ++++ gradle.properties | 2 +- .../conan/clion/toolWindow/MainActionToolbar.kt | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 452a07c1..ab59c15a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [Unreleased] +### Changed + +- Fixed deprecated usage of `ActionUpdateThread.OLD_EDT` by overriding `getActionUpdateThread()` + ## [2.0.5] - 2024-08-14 ### Changed diff --git a/gradle.properties b/gradle.properties index d5b76c50..7829cb0b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.jfrog.conan.clion pluginName = Conan pluginRepositoryUrl = https://github.com/conan-io/conan-clion-plugin/ # SemVer format -> https://semver.org -pluginVersion = 2.0.5 +pluginVersion = 2.0.6 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223 diff --git a/src/main/kotlin/com/jfrog/conan/clion/toolWindow/MainActionToolbar.kt b/src/main/kotlin/com/jfrog/conan/clion/toolWindow/MainActionToolbar.kt index 04ee7c67..e7623cdb 100644 --- a/src/main/kotlin/com/jfrog/conan/clion/toolWindow/MainActionToolbar.kt +++ b/src/main/kotlin/com/jfrog/conan/clion/toolWindow/MainActionToolbar.kt @@ -24,6 +24,10 @@ class MainActionToolbar(val project: Project) { ConanExecutableDialogWrapper(project).showAndGet() CMake(project).handleAdvancedSettings() } + + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.EDT + } } } @@ -40,6 +44,10 @@ class MainActionToolbar(val project: Project) { e.presentation.isEnabled = conanService.isPluginConfigured() super.update(e) } + + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.EDT + } } } @@ -57,6 +65,10 @@ class MainActionToolbar(val project: Project) { e.presentation.isEnabled = conanService.isPluginConfigured() super.update(e) } + + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.EDT + } } }