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

Examples of org.erlide.tracing.core.mvc.model.treenodes.ITreeNode


    private ITreeNode processRegisterTrace(final String label, final Images image,
            final OtpErlangTuple tuple) {
        final StringBuilder labelBuilder = new StringBuilder(label).append(": ");

        final ITreeNode process = createProcessNode("process: ",
                tuple.elementAt(INDEX_PROCESS));
        process.setImage(Activator.getImage(Images.REGISTER_NODE));
        labelBuilder.append(lastProcessDescription).append("->");

        final TreeNode regName = new TreeNode("name: "
                + tuple.elementAt(INDEX_REGNAME).toString(),
                Activator.getImage(Images.INFO_NODE));
        labelBuilder.append(regName);

        final ITreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()),
                Activator.getImage(image));
        node.addChildren(process, regName);
        return node;
    }
View Full Code Here


    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(INDEX_PROCESS));
        process1Node.setImage(Activator.getImage(Images.PROCESS_NODE));
        labelBuilder.append(lastProcessDescription).append("->");

        final ITreeNode process2Node = createProcessNode("process 2: ",
                tuple.elementAt(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);
View Full Code Here

    }

    private ITreeNode processExitTrace(final String label, final OtpErlangTuple tuple) {
        final StringBuilder labelBuilder = new StringBuilder(label).append(": ");

        final ITreeNode processNode = createProcessNode("process: ",
                tuple.elementAt(INDEX_PROCESS));
        processNode.setImage(Activator.getImage(Images.PROCESS_NODE));
        labelBuilder.append(lastProcessDescription);

        final ITreeNode reasonNode = new TreeNode("reason: "
                + tuple.elementAt(INDEX_REASON).toString(),
                Activator.getImage(Images.INFO_NODE));

        final TreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()));
        node.setImage(Activator.getDefault().getImageRegistry()
View Full Code Here

    }

    private ITreeNode processReceiveTrace(final String label, final OtpErlangTuple tuple) {
        final StringBuilder labelBuilder = new StringBuilder(label).append(": ");

        final ITreeNode processNode = createProcessNode("receiver: ",
                tuple.elementAt(INDEX_PROCESS));
        processNode.setImage(Activator.getImage(Images.RECEIVER_NODE));
        labelBuilder.append(lastProcessDescription);

        final ITreeNode messageNode = createMessageNode(tuple.elementAt(INDEX_MESSAGE));

        final TreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()));
        node.setImage(Activator.getDefault().getImageRegistry()
                .get(Images.RECEIVED_MESSAGE_NODE.toString()));
        node.addChildren(processNode, messageNode);
View Full Code Here

    private ITreeNode processSendTrace(final String label, final Images image,
            final OtpErlangTuple tuple) {
        final StringBuilder labelBuilder = new StringBuilder(label).append(": ");

        final ITreeNode senderNode = createProcessNode("sender: ",
                tuple.elementAt(INDEX_PROCESS));
        senderNode.setImage(Activator.getImage(Images.SENDER_NODE));
        labelBuilder.append(lastProcessDescription).append("->");

        final ITreeNode receiverNode = createProcessNode("receiver: ",
                tuple.elementAt(INDEX_TO));
        receiverNode.setImage(Activator.getImage(Images.RECEIVER_NODE));
        labelBuilder.append(lastProcessDescription);

        final ITreeNode messageNode = createMessageNode(tuple.elementAt(INDEX_MESSAGE));

        final TreeNode node = new TreeNode(createNodeLabel(labelBuilder.toString()));
        node.setImage(Activator.getImage(image));
        node.addChildren(senderNode, receiverNode, messageNode);
        return node;
View Full Code Here

        node.addChildren(senderNode, receiverNode, messageNode);
        return node;
    }

    private ITreeNode processCallTrace(final String label, final OtpErlangTuple tuple) {
        final ITreeNode processNode = createProcessNode("process: ",
                tuple.elementAt(INDEX_PROCESS));
        processNode.setImage(Activator.getImage(Images.PROCESS_NODE));

        final ITreeNode node = createFunctionNode(createNodeLabel(label + ": "),
                tuple.elementAt(INDEX_FUNCTION));
        node.setImage(Activator.getImage(Images.CALL_NODE));
        node.addChildren(processNode);
        return node;
    }
View Full Code Here

     * @param event
     */
    private void doSelection(final SelectionChangedEvent event) {
        final IStructuredSelection selection = (IStructuredSelection) event
                .getSelection();
        final ITreeNode treeNode = (ITreeNode) selection.getFirstElement();
        if (treeNode != null) {
            task = new RunnableWithProgress("Loading trace results...") {
                @Override
                public void doAction() {
                    TraceBackend.getInstance().setActiveResultSet(
View Full Code Here

     * @param event
     */
    private void doDoubleClick(final DoubleClickEvent event) {
        final IStructuredSelection selection = (IStructuredSelection) event
                .getSelection();
        final ITreeNode treeNode = (ITreeNode) selection.getFirstElement();
        try {
            if (treeNode instanceof FunctionNode) {
                final FunctionNode functionNode = (FunctionNode) treeNode;
                ErlModelUtils.openMFA(functionNode.getModuleName(),
                        functionNode.getFunctionName(), functionNode.getArity());
View Full Code Here

TOP

Related Classes of org.erlide.tracing.core.mvc.model.treenodes.ITreeNode

Copyright © 2018 www.massapicom. 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.