Search in sources :

Example 1 with DebuggerUtilsEx

use of com.intellij.debugger.impl.DebuggerUtilsEx in project intellij-community by JetBrains.

the class ShowAllAs method update.

public void update(AnActionEvent e) {
    DebuggerTreeNode selectedNode = ((DebuggerUtilsEx) DebuggerUtils.getInstance()).getSelectedNode(e.getDataContext());
    e.getPresentation().setVisible(myRenderer != null && selectedNode != null && isPrimitiveArray(selectedNode));
}
Also used : DebuggerTreeNode(com.intellij.debugger.ui.tree.DebuggerTreeNode) DebuggerUtilsEx(com.intellij.debugger.impl.DebuggerUtilsEx)

Example 2 with DebuggerUtilsEx

use of com.intellij.debugger.impl.DebuggerUtilsEx in project intellij-community by JetBrains.

the class SuspendContextImpl method resume.

protected void resume() {
    assertNotResumed();
    if (isEvaluating()) {
        LOG.error("Resuming context while evaluating", ThreadDumper.dumpThreadsToString());
    }
    DebuggerManagerThreadImpl.assertIsManagerThread();
    try {
        if (!Patches.IBM_JDK_DISABLE_COLLECTION_BUG) {
            myKeptReferences.forEach(DebuggerUtilsEx::enableCollection);
            myKeptReferences.clear();
        }
        for (SuspendContextCommandImpl cmd = pollPostponedCommand(); cmd != null; cmd = pollPostponedCommand()) {
            cmd.notifyCancelled();
        }
        resumeImpl();
    } finally {
        myIsResumed = true;
    }
}
Also used : DebuggerUtilsEx(com.intellij.debugger.impl.DebuggerUtilsEx) SuspendContextCommandImpl(com.intellij.debugger.engine.events.SuspendContextCommandImpl)

Aggregations

DebuggerUtilsEx (com.intellij.debugger.impl.DebuggerUtilsEx)2 SuspendContextCommandImpl (com.intellij.debugger.engine.events.SuspendContextCommandImpl)1 DebuggerTreeNode (com.intellij.debugger.ui.tree.DebuggerTreeNode)1