aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorDev2a <contact@dev2a.pro>2024-04-05 13:41:58 +0200
committerDev2a <contact@dev2a.pro>2024-04-05 13:41:58 +0200
commit201237f5a8ef6b4dd5ef77147916023a175873b0 (patch)
tree4606e93dfc938df606e187745ac58571b800d246 /src/main/java
parenta131ac3511a87a23a7d292f30b3845b8eb5dc2c5 (diff)
downloadidea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.tar.gz
idea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.tar.bz2
idea_caseconv-201237f5a8ef6b4dd5ef77147916023a175873b0.zip
Fix error ActionUpdateThread
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/laria/code/idea_caseconv/SelectionReplacerAction.java9
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