mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[memory-agent] Fix bug when "Calculate retained size" action was hidden all the time
GitOrigin-RevId: 2c3b79f29910c5a0c00274003e96c3ff2ebc51d2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
79b28731c5
commit
0a9239d304
+2
-6
@@ -31,11 +31,7 @@ public abstract class MemoryAgentActionBase extends DebuggerTreeAction {
|
||||
debugProcess.getManagerThread().schedule(new SuspendContextCommandImpl(suspendContext) {
|
||||
@Override
|
||||
public void contextAction(@NotNull SuspendContextImpl suspendContext) {
|
||||
EvaluationContextImpl evaluationContext = suspendContext.getEvaluationContext();
|
||||
if (evaluationContext == null) {
|
||||
LOG.error("Evaluation impossible");
|
||||
return;
|
||||
}
|
||||
EvaluationContextImpl evaluationContext = new EvaluationContextImpl(suspendContext, suspendContext.getFrameProxy());
|
||||
try {
|
||||
perform(evaluationContext, reference, node);
|
||||
}
|
||||
@@ -55,7 +51,7 @@ public abstract class MemoryAgentActionBase extends DebuggerTreeAction {
|
||||
protected boolean isEnabled(@NotNull XValueNodeImpl node, @NotNull AnActionEvent e) {
|
||||
if (!super.isEnabled(node, e)) return false;
|
||||
DebugProcessImpl debugProcess = JavaDebugProcess.getCurrentDebugProcess(node.getTree().getProject());
|
||||
if (debugProcess == null || debugProcess.isEvaluationPossible() || !MemoryAgent.get(debugProcess).capabilities().isLoaded()) {
|
||||
if (debugProcess == null || !debugProcess.isEvaluationPossible() || !MemoryAgent.get(debugProcess).capabilities().isLoaded()) {
|
||||
e.getPresentation().setVisible(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user