aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/laria/code
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/laria/code')
-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