diff --git a/src/com/zenuml/sequence/plugins/jetbrains/actions/OpenInBrowserAction.java b/src/com/zenuml/sequence/plugins/jetbrains/actions/OpenInBrowserAction.java index 77d6ca7..843e1ad 100644 --- a/src/com/zenuml/sequence/plugins/jetbrains/actions/OpenInBrowserAction.java +++ b/src/com/zenuml/sequence/plugins/jetbrains/actions/OpenInBrowserAction.java @@ -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; @@ -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();