Search in sources :

Example 1 with ThreadGroupReferenceProxyImpl

use of com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl in project intellij-community by JetBrains.

the class ThreadGroupDescriptorImpl method calcRepresentation.

protected String calcRepresentation(EvaluationContextImpl context, DescriptorLabelListener labelListener) throws EvaluateException {
    DebuggerManagerThreadImpl.assertIsManagerThread();
    ThreadGroupReferenceProxyImpl group = getThreadGroupReference();
    try {
        myName = group.name();
        return DebuggerBundle.message("label.thread.group.node", myName, group.uniqueID());
    } catch (ObjectCollectedException e) {
        return myName != null ? DebuggerBundle.message("label.thread.group.node.group.collected", myName) : "";
    }
}
Also used : ObjectCollectedException(com.sun.jdi.ObjectCollectedException) ThreadGroupReferenceProxyImpl(com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl)

Example 2 with ThreadGroupReferenceProxyImpl

use of com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl in project intellij-community by JetBrains.

the class JavaExecutionStack method calcRepresentation.

private static String calcRepresentation(ThreadReferenceProxyImpl thread) {
    DebuggerManagerThreadImpl.assertIsManagerThread();
    String name = thread.name();
    ThreadGroupReferenceProxyImpl gr = thread.threadGroupProxy();
    final String grname = (gr != null) ? gr.name() : null;
    final String threadStatusText = DebuggerUtilsEx.getThreadStatusText(thread.status());
    //noinspection HardCodedStringLiteral
    if (grname != null && !"SYSTEM".equalsIgnoreCase(grname)) {
        return DebuggerBundle.message("label.thread.node.in.group", name, thread.uniqueID(), threadStatusText, grname);
    }
    return DebuggerBundle.message("label.thread.node", name, thread.uniqueID(), threadStatusText);
}
Also used : ThreadGroupReferenceProxyImpl(com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl)

Example 3 with ThreadGroupReferenceProxyImpl

use of com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl in project intellij-community by JetBrains.

the class ThreadDescriptorImpl method calcRepresentation.

protected String calcRepresentation(EvaluationContextImpl context, DescriptorLabelListener labelListener) throws EvaluateException {
    DebuggerManagerThreadImpl.assertIsManagerThread();
    ThreadReferenceProxyImpl thread = getThreadReference();
    try {
        myName = thread.name();
        ThreadGroupReferenceProxyImpl gr = getThreadReference().threadGroupProxy();
        final String grname = (gr != null) ? gr.name() : null;
        final String threadStatusText = DebuggerUtilsEx.getThreadStatusText(getThreadReference().status());
        //noinspection HardCodedStringLiteral
        if (grname != null && !"SYSTEM".equalsIgnoreCase(grname)) {
            return DebuggerBundle.message("label.thread.node.in.group", myName, thread.uniqueID(), threadStatusText, grname);
        }
        return DebuggerBundle.message("label.thread.node", myName, thread.uniqueID(), threadStatusText);
    } catch (ObjectCollectedException e) {
        return myName != null ? DebuggerBundle.message("label.thread.node.thread.collected", myName) : "";
    }
}
Also used : ObjectCollectedException(com.sun.jdi.ObjectCollectedException) ThreadReferenceProxyImpl(com.intellij.debugger.jdi.ThreadReferenceProxyImpl) ThreadGroupReferenceProxyImpl(com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl)

Aggregations

ThreadGroupReferenceProxyImpl (com.intellij.debugger.jdi.ThreadGroupReferenceProxyImpl)3 ObjectCollectedException (com.sun.jdi.ObjectCollectedException)2 ThreadReferenceProxyImpl (com.intellij.debugger.jdi.ThreadReferenceProxyImpl)1