Skip to content

Commit

Permalink
fix: fixed deprecated calls
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Apr 17, 2024
1 parent e924cdf commit 0f3950e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ideaVersion=IC-2022.3
ideaVersion=IC-2024.1
projectVersion=1.9.5-SNAPSHOT
nexusUser=invalid
nexusPassword=invalid
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
import java.util.function.Supplier;

public class MutableModelSynchronizer<T> implements MutableModel.Listener<T> {
protected final StructureTreeModel treeModel;
protected final StructureTreeModel<? extends AbstractTreeStructure> treeModel;
private final AbstractTreeStructure structure;
private final MutableModel<T> mutableModel;

public MutableModelSynchronizer(StructureTreeModel treeModel,
public MutableModelSynchronizer(StructureTreeModel<? extends AbstractTreeStructure> treeModel,
AbstractTreeStructure structure,
MutableModel<T> mutableModel) {
this.treeModel = treeModel;
Expand All @@ -52,7 +52,7 @@ private void invalidatePath(Supplier<TreePath> pathSupplier) {
}

private void invalidateRoot() {
treeModel.invalidate();
treeModel.invalidateAsync();
}

private T getParentElement(T element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f3950e

Please sign in to comment.