diff options
author | Dev2a <contact@dev2a.pro> | 2024-04-05 13:41:58 +0200 |
---|---|---|
committer | Dev2a <contact@dev2a.pro> | 2024-04-05 13:41:58 +0200 |
commit | 201237f5a8ef6b4dd5ef77147916023a175873b0 (patch) | |
tree | 4606e93dfc938df606e187745ac58571b800d246 /src | |
parent | a131ac3511a87a23a7d292f30b3845b8eb5dc2c5 (diff) | |
download | idea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.tar.gz idea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.tar.bz2 idea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.zip |
Fix error ActionUpdateThread
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java | 9 |
1 files changed, 9 insertions, 0 deletions
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 |