[rd debugger] IJPL-219714 Move pin to top icons to All icons

GitOrigin-RevId: 603081ff09985b2ea55a6bae599173cfe5454167
This commit is contained in:
Maksim Zuev
2026-02-12 22:39:46 +00:00
committed by intellij-monorepo-bot
parent f53a941266
commit 417aa0b847
17 changed files with 69 additions and 14 deletions
@@ -22,7 +22,6 @@ import com.intellij.xdebugger.impl.ui.tree.XDebuggerTreeListener;
import com.intellij.xdebugger.impl.ui.tree.nodes.RestorableStateNode;
import com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl;
import com.sun.jdi.ObjectReference;
import icons.PlatformDebuggerImplIcons;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -150,7 +149,7 @@ public final class RetainedSizeDialog extends MemoryAgentDialog {
if (!mySkipNotification && node instanceof XValueNodeImpl nodeImpl &&
nodeImpl != nodeImpl.getTree().getRoot() && myHeldObjects.contains(getObjectReference(nodeImpl))) {
XValuePresentation presentation = nodeImpl.getValuePresentation();
if (presentation != null && nodeImpl.getIcon() != PlatformDebuggerImplIcons.PinToTop.UnpinnedItem) {
if (presentation != null && nodeImpl.getIcon() != AllIcons.Debugger.PinToTop.UnpinnedItem) {
highlightNode(nodeImpl);
}
}
@@ -160,7 +159,7 @@ public final class RetainedSizeDialog extends MemoryAgentDialog {
public void highlightNode(@NotNull XValueNodeImpl node) {
XValuePresentation presentation = node.getValuePresentation();
Icon icon = node.getIcon();
if (presentation != null && icon != PlatformDebuggerImplIcons.PinToTop.UnpinnedItem) {
if (presentation != null && icon != AllIcons.Debugger.PinToTop.UnpinnedItem) {
mySkipNotification = true;
node.applyPresentation(
myCachedIcons.computeIfAbsent(icon, nodeIcon -> LayeredIcon.layeredIcon(new Icon[]{nodeIcon, HELD_OBJECTS_MARK_ICON})),