diff --git a/gradle.properties b/gradle.properties index 939cb94..f218bb2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -ideaVersion=IC-2022.3 +ideaVersion=IC-2024.1 projectVersion=1.9.5-SNAPSHOT nexusUser=invalid nexusPassword=invalid diff --git a/src/main/java/com/redhat/devtools/intellij/common/gettingstarted/GettingStartedContent.java b/src/main/java/com/redhat/devtools/intellij/common/gettingstarted/GettingStartedContent.java index 47976bc..a3289f6 100644 --- a/src/main/java/com/redhat/devtools/intellij/common/gettingstarted/GettingStartedContent.java +++ b/src/main/java/com/redhat/devtools/intellij/common/gettingstarted/GettingStartedContent.java @@ -510,7 +510,7 @@ private JComponent createLessonLabel(GettingStartedLesson lesson, boolean hasFoc titlePanel.add(lessonTitleLabel); if (hasFocus) { - titlePanel.setBackground(JBUI.CurrentTheme.StatusBar.hoverBackground()); + titlePanel.setBackground(JBUI.CurrentTheme.StatusBar.Widget.HOVER_BACKGROUND); } return titlePanel; diff --git a/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java b/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java index f056c6b..6400ace 100644 --- a/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java +++ b/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java @@ -24,11 +24,11 @@ import java.util.function.Supplier; public class MutableModelSynchronizer implements MutableModel.Listener { - protected final StructureTreeModel treeModel; + protected final StructureTreeModel treeModel; private final AbstractTreeStructure structure; private final MutableModel mutableModel; - public MutableModelSynchronizer(StructureTreeModel treeModel, + public MutableModelSynchronizer(StructureTreeModel treeModel, AbstractTreeStructure structure, MutableModel mutableModel) { this.treeModel = treeModel; @@ -52,7 +52,7 @@ private void invalidatePath(Supplier pathSupplier) { } private void invalidateRoot() { - treeModel.invalidate(); + treeModel.invalidateAsync(); } private T getParentElement(T element) { diff --git a/src/main/java/com/redhat/devtools/intellij/common/utils/CommonTerminalExecutionConsole.java b/src/main/java/com/redhat/devtools/intellij/common/utils/CommonTerminalExecutionConsole.java index 2aeb9ed..bd2e396 100644 --- a/src/main/java/com/redhat/devtools/intellij/common/utils/CommonTerminalExecutionConsole.java +++ b/src/main/java/com/redhat/devtools/intellij/common/utils/CommonTerminalExecutionConsole.java @@ -27,6 +27,7 @@ import com.intellij.icons.AllIcons; import com.intellij.idea.ActionsBundle; import com.intellij.openapi.Disposable; +import com.intellij.openapi.actionSystem.ActionUpdateThread; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.DataProvider; @@ -60,9 +61,8 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import javax.swing.BoundedRangeModel; -import javax.swing.JComponent; -import java.awt.Color; +import javax.swing.*; +import java.awt.*; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; @@ -446,7 +446,12 @@ public void actionPerformed(@NotNull AnActionEvent e) { } } - @Nullable + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.EDT; + } + + @Nullable private BoundedRangeModel getBoundedRangeModel() { return myTerminalWidget != null ? myTerminalWidget.getTerminalPanel().getBoundedRangeModel() : null; }