Skip to content

Commit

Permalink
Fixed #36
Browse files Browse the repository at this point in the history
  • Loading branch information
organics2016 committed Mar 29, 2024
1 parent 56e9d13 commit 506d23f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/ink/organics/pojo2json/POJO2JSONAction.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ink.organics.pojo2json;

import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
Expand All @@ -20,6 +21,10 @@ public POJO2JSONAction() {
this.pojo2JSONParser = POJO2JSONParserFactory.getInstant();
}

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

public void pojo2jsonAction(@NotNull final PsiFile psiFile) {
pojo2jsonAction(psiFile, null, null);
Expand Down

0 comments on commit 506d23f

Please sign in to comment.