mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rd debugger] IJPL-219714 Move pin to top icons to All icons
GitOrigin-RevId: 603081ff09985b2ea55a6bae599173cfe5454167
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f53a941266
commit
417aa0b847
+2
-3
@@ -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})),
|
||||
|
||||
Reference in New Issue
Block a user