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) : "";
}
}
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);
}
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) : "";
}
}
Aggregations