use of org.erlide.tracing.core.mvc.model.treenodes.TreeNode in project erlide_eclipse by erlang.
the class TraceDataHandler method processLinkTrace.
private ITreeNode processLinkTrace(final String label, final Images image, final OtpErlangTuple tuple) {
final StringBuilder labelBuilder = new StringBuilder(label).append(": ");
final ITreeNode process1Node = createProcessNode("process 1: ", tuple.elementAt(TraceDataHandler.INDEX_PROCESS));
process1Node.setImage(Activator.getImage(Images.PROCESS_NODE));
labelBuilder.append(lastProcessDescription).append("->");
final ITreeNode process2Node = createProcessNode("process 2: ", tuple.elementAt(TraceDataHandler.INDEX_PROCESS2));
process2Node.setImage(Activator.getImage(Images.PROCESS_NODE));
labelBuilder.append(lastProcessDescription);
final TreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()));
node.setImage(Activator.getImage(image));
node.addChildren(process1Node, process2Node);
return node;
}
use of org.erlide.tracing.core.mvc.model.treenodes.TreeNode in project erlide_eclipse by erlang.
the class TraceDataHandler method processExitTrace.
private ITreeNode processExitTrace(final String label, final OtpErlangTuple tuple) {
final StringBuilder labelBuilder = new StringBuilder(label).append(": ");
final ITreeNode processNode = createProcessNode("process: ", tuple.elementAt(TraceDataHandler.INDEX_PROCESS));
processNode.setImage(Activator.getImage(Images.PROCESS_NODE));
labelBuilder.append(lastProcessDescription);
final ITreeNode reasonNode = new TreeNode("reason: " + tuple.elementAt(TraceDataHandler.INDEX_REASON).toString(), Activator.getImage(Images.INFO_NODE));
final TreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()));
node.setImage(Activator.getDefault().getImageRegistry().get(Images.EXIT_NODE.toString()));
node.addChildren(processNode, reasonNode);
return node;
}
use of org.erlide.tracing.core.mvc.model.treenodes.TreeNode in project erlide_eclipse by erlang.
the class TraceDataHandler method processDropTrace.
// functions creating nodes
private ITreeNode processDropTrace(final OtpErlangTuple tuple) {
final OtpErlangLong amount = (OtpErlangLong) tuple.elementAt(1);
final ITreeNode node = new TreeNode("Dropped traces: " + amount.longValue(), Activator.getImage(Images.DROP_NODE));
return node;
}
Aggregations