Examples of PythonpathTreeNode


Examples of org.python.pydev.navigator.PythonpathTreeNode

        }
        infosSearched.add(treeNodeRoot.interpreterInfo);

        List<TreeNode> nodesOrderedForFileSearch = treeNodeRoot.getNodesOrderedForFileSearch();
        for (TreeNode node : nodesOrderedForFileSearch) {
            PythonpathTreeNode match = findMatch(node, element);
            if (match != null) {
                return new StructuredSelection(match);
            }
        }
        return null;
View Full Code Here

Examples of org.python.pydev.navigator.PythonpathTreeNode

     * Recursively iterates a tree node structure from parent -> children to find a match for the given element.
     * The match is returned if found (null is returned if not found).
     */
    private PythonpathTreeNode findMatch(TreeNode treeNode, Object element) {
        if (treeNode instanceof PythonpathTreeNode) {
            PythonpathTreeNode pythonpathTreeNode = (PythonpathTreeNode) treeNode;
            if (element.equals(pythonpathTreeNode.file)) {
                return pythonpathTreeNode;
            }
        }
        List<TreeNode> children = treeNode.getChildren();
        for (TreeNode object : children) {
            PythonpathTreeNode m = findMatch(object, element);
            if (m != null) {
                return m;
            }
        }
        return null;
View Full Code Here

Examples of org.python.pydev.navigator.PythonpathTreeNode

                    } else {
                        pythonPathZipFilesSelected.add(node);
                    }

                } else if (element instanceof PythonpathTreeNode) {
                    PythonpathTreeNode node = (PythonpathTreeNode) element;
                    if (node.file.isFile()) {
                        pythonPathFilesSelected.add(node);
                    } else {
                        containersSelected.add(node);
                    }
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.