From 201237f5a8ef6b4dd5ef77147916023a175873b0 Mon Sep 17 00:00:00 2001 From: Dev2a Date: Fri, 5 Apr 2024 13:41:58 +0200 Subject: Fix error ActionUpdateThread --- .../me/laria/code/idea_caseconv/SelectionReplacerAction.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java b/src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java index d715ac2..13a19f3 100644 --- a/src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java +++ b/src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java @@ -1,5 +1,6 @@ package me.laria.code.idea_caseconv; +import com.intellij.openapi.actionSystem.ActionUpdateThread; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; @@ -10,12 +11,20 @@ import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; import me.laria.code.idea_caseconv.settings.Settings; +import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; abstract class SelectionReplacerAction extends AnAction { + + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + + return ActionUpdateThread.EDT; + } + @Override public void update(final AnActionEvent e) { //Get required data keys -- cgit v1.2.3-70-g09d2