Skip to content

Commit

Permalink
override deprecated getActionUpdateThread so warning wont pop
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalk007 committed Aug 27, 2024
1 parent 6241ba5 commit f9c1bac
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jfrog.ide.idea.actions;

import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.actionSystem.ex.ToolbarLabelAction;
Expand All @@ -16,6 +17,7 @@
import java.time.format.FormatStyle;

public class ScanTimeLabelAction extends ToolbarLabelAction {

@Override
public void update(@NotNull AnActionEvent e) {
super.update(e);
Expand All @@ -38,4 +40,10 @@ public void update(@NotNull AnActionEvent e) {
presentation.setIcon(null);
}
}

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

0 comments on commit f9c1bac

Please sign in to comment.