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

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


            // module name node
            final TreeNode moduleNameNode = new ModuleNode(moduleName.atomValue());
            moduleNameNode.setLabel("module: " + moduleName);

            // 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;
View Full Code Here


        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());
            } else if (treeNode instanceof ModuleNode) {
                final ModuleNode moduleNode = (ModuleNode) treeNode;
                ErlModelUtils.openModule(moduleNode.getModuleName());
            }
        } catch (final CoreException e) {
View Full Code Here

TOP

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

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.