From b1a1fc305a935c74debae40eef8f5529e12b0370 Mon Sep 17 00:00:00 2001 From: Eyal Kapon Date: Tue, 27 Aug 2024 15:23:07 +0300 Subject: [PATCH] added an override to the deprecated func so it wont pop and error for users --- .../com/jfrog/ide/idea/actions/ScanTimeLabelAction.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/jfrog/ide/idea/actions/ScanTimeLabelAction.java b/src/main/java/com/jfrog/ide/idea/actions/ScanTimeLabelAction.java index b6234083..26904a66 100644 --- a/src/main/java/com/jfrog/ide/idea/actions/ScanTimeLabelAction.java +++ b/src/main/java/com/jfrog/ide/idea/actions/ScanTimeLabelAction.java @@ -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; @@ -16,6 +17,7 @@ import java.time.format.FormatStyle; public class ScanTimeLabelAction extends ToolbarLabelAction { + @Override public void update(@NotNull AnActionEvent e) { super.update(e); @@ -38,4 +40,10 @@ public void update(@NotNull AnActionEvent e) { presentation.setIcon(null); } } + + @NotNull + @Override + public ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.EDT; + } }