Package org.erlide.tracing.core.mvc.model.treenodes

Examples of org.erlide.tracing.core.mvc.model.treenodes.ITreeNode.addChildren()


            builder.append(erlangObject.toString());
        }

        final ITreeNode node = new TreeNode();
        if (pidNode != null) {
            node.addChildren(pidNode);
        }
        if (nameNode != null) {
            node.addChildren(nameNode);
        }
        if (processNodeNode != null) {
View Full Code Here


        final ITreeNode node = new TreeNode();
        if (pidNode != null) {
            node.addChildren(pidNode);
        }
        if (nameNode != null) {
            node.addChildren(nameNode);
        }
        if (processNodeNode != null) {
            node.addChildren(processNodeNode);
        }
        if (functionNode != null) {
View Full Code Here

        }
        if (nameNode != null) {
            node.addChildren(nameNode);
        }
        if (processNodeNode != null) {
            node.addChildren(processNodeNode);
        }
        if (functionNode != null) {
            node.addChildren(functionNode);
        }
View Full Code Here

        }
        if (processNodeNode != null) {
            node.addChildren(processNodeNode);
        }
        if (functionNode != null) {
            node.addChildren(functionNode);
        }

        lastProcessDescription = builder.toString();
        node.setLabel(label + lastProcessDescription);
View Full Code Here

            // function name node
            final TreeNode functionNameNode = new FunctionNode(moduleName.atomValue(),
                    functionName.atomValue(), arityValue);
            functionNameNode.setLabel("function: " + functionName);

            node.addChildren(moduleNameNode, functionNameNode, argsNode);
            lastFunctionDescription = label + moduleName + ":" + functionName + "/"
                    + arityValue;

        } else {
            lastFunctionDescription = "unknown";
View Full Code Here

        processNode.setImage(Activator.getImage(Images.PROCESS_NODE));
        labelBuilder.append(lastProcessDescription);

        final ITreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()),
                Activator.getImage(image));
        node.addChildren(processNode);

        final OtpErlangList list = (OtpErlangList) tuple.elementAt(INDEX_INFO);
        for (final OtpErlangObject otpErlangObject : list) {
            final OtpErlangTuple infoTuple = (OtpErlangTuple) otpErlangObject;
            final OtpErlangObject key = infoTuple.elementAt(0);
View Full Code Here

            final OtpErlangObject key = infoTuple.elementAt(0);
            final OtpErlangObject value = infoTuple.elementAt(1);
            final TreeNode treeNode = new TreeNode(key.toString() + ": "
                    + value.toString());
            treeNode.setImage(Activator.getImage(Images.INFO_NODE));
            node.addChildren(treeNode);
        }
        return node;
    }

    private ITreeNode processSpawnTrace(final String label, final OtpErlangTuple tuple) {
View Full Code Here

                tuple.elementAt(INDEX_SPAWN_FUNCTION));
        functionNode.setImage(Activator.getImage(Images.FUNCTION_NODE));

        final ITreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()),
                Activator.getImage(Images.SPAWN_NODE));
        node.addChildren(processNode, processNode2, functionNode);
        return node;
    }

    private ITreeNode processExceptionFrom(final String label, final OtpErlangTuple tuple) {
        final StringBuilder labelBuilder = new StringBuilder(label).append(": ");
View Full Code Here

                .elementAt(INDEX_EXCEPTION_VALUE);
        labelBuilder.append(exceptionClass.toString());

        final ITreeNode exceptionClassNode = new TreeNode(exceptionClass.toString(),
                Activator.getImage(Images.INFO_NODE));
        exceptionClassNode.addChildren(new TreeNode(exceptionValue.toString()));

        final ITreeNode node = processReturnTrace(labelBuilder.toString(),
                Images.EXCEPTION_NODE, tuple, false);
        node.addChildren(processNode, exceptionClassNode);
        return node;
View Full Code Here

                Activator.getImage(Images.INFO_NODE));
        exceptionClassNode.addChildren(new TreeNode(exceptionValue.toString()));

        final ITreeNode node = processReturnTrace(labelBuilder.toString(),
                Images.EXCEPTION_NODE, tuple, false);
        node.addChildren(processNode, exceptionClassNode);
        return node;
    }

    private ITreeNode processReturnTrace(final String label, final Images image,
            final OtpErlangTuple tuple, final boolean showRetValue) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.