Skip to content

Commit

Permalink
override ActionUpdateThread method with new action EDT
Browse files Browse the repository at this point in the history
  • Loading branch information
dontry committed Nov 20, 2024
1 parent e9dedde commit aa04823
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zenuml.sequence.plugins.jetbrains.actions;

import com.intellij.ide.BrowserUtil;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.intellij.plugins.markdown.ui.actions.MarkdownActionUtil;
Expand All @@ -18,6 +19,11 @@ public OpenInBrowserAction() {
super(TITLE);
}

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

public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
SplitFileEditor splitEditor = MarkdownActionUtil.findSplitEditor(anActionEvent);
MarkdownPreviewFileEditor markdownPreviewFileEditor = (MarkdownPreviewFileEditor) splitEditor.getSecondEditor();
Expand Down

0 comments on commit aa04823

Please sign in to comment.