Skip to content

Commit

Permalink
[Fixes xusoo#5] Override getActionUpdateThread() to return non-deprec…
Browse files Browse the repository at this point in the history
…ated ActionUpdateThread value
  • Loading branch information
grgrzybek committed Oct 4, 2024
1 parent 47fecf1 commit 8d04a93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DuplicateLines.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.intellij.codeInsight.hint.HintManager;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
Expand Down Expand Up @@ -59,6 +60,11 @@ public void update(AnActionEvent event) {
event.getPresentation().setEnabledAndVisible(event.getData(CommonDataKeys.EDITOR) != null);
}

@Override
public ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.EDT;
}

/**
* Prepares the caret selection and duplicates the line (up or down depeding of the <code>mode</code> parameter)
*/
Expand Down

0 comments on commit 8d04a93

Please sign in to comment.