Skip to content

Commit

Permalink
Fix the warning of "ActionUpdateThread.OLD_EDT is deprecated"
Browse files Browse the repository at this point in the history
  • Loading branch information
whimet committed Apr 19, 2024
1 parent 3af8d48 commit 8090c2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/org/intellij/sequencer/ShowZenUMLScratchAction.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package org.intellij.sequencer;

import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

public class ShowZenUMLScratchAction extends AnAction {

Expand All @@ -26,6 +28,11 @@ public void actionPerformed(AnActionEvent event) {
}
}

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

private SequencePlugin2 getPlugin(AnActionEvent event) {
Project project = getProject(event);
if (project == null)
Expand Down

0 comments on commit 8090c2d

Please sign in to comment.