Package com.python.pydev.ui.hierarchy

Examples of com.python.pydev.ui.hierarchy.HierarchyNodeModel


        final int line = 3;
        final int col = 9;

        RefactoringRequest request = setUpFooModule(line, col, str);

        HierarchyNodeModel node = refactorer.findClassHierarchy(request, false);
        assertEquals("Foo", node.name);
        assertTrue(node.moduleName.startsWith("foo"));

        assertIsIn("Bar", node.moduleName, node.parents);
        assertIsIn("Pickler", "pickle", node.parents);
View Full Code Here


        final int line = 0;
        final int col = 8;

        RefactoringRequest request = setUpFooModule(line, col, str);

        HierarchyNodeModel node = refactorer.findClassHierarchy(request, false);
        assertEquals("Bar", node.name);
        assertTrue(node.moduleName.startsWith("foo"));

        node = assertIsIn("Foo", node.moduleName, node.children);
        assertIsIn("Foo1", node.moduleName, node.children);
View Full Code Here

        final int line = 6;
        final int col = 8;

        RefactoringRequest request = setUpFooModule(line, col, str);

        HierarchyNodeModel node = refactorer.findClassHierarchy(request, false);
        assertEquals("Leaf", node.name);
        assertTrue(node.moduleName.startsWith("foo"));

        HierarchyNodeModel mid1 = assertIsIn("Mid1", node.moduleName, node.parents);
        HierarchyNodeModel mid2 = assertIsIn("Mid2", node.moduleName, node.parents);
        assertIsIn("Root", node.moduleName, mid1.parents);
        HierarchyNodeModel root = assertIsIn("Root", node.moduleName, mid2.parents);
        assertIsIn("object", null, root.parents);

    }
View Full Code Here

    }

    private void fillHierarchy(TreeNode<OutlineEntry> entry) {
        ArrayList<TreeNode<OutlineEntry>> copy = new ArrayList<TreeNode<OutlineEntry>>(entry.children);
        for (TreeNode<OutlineEntry> nextEntry : copy) {
            HierarchyNodeModel model = this.nodeToModel.get(nextEntry.data.node);
            addMethods(nextEntry, model);
            fillHierarchy(nextEntry);
        }
    }
View Full Code Here

                IRunnableWithProgress operation = new IRunnableWithProgress() {

                    public void run(final IProgressMonitor monitor) throws InvocationTargetException,
                            InterruptedException {
                        try {
                            final HierarchyNodeModel model;

                            //set whatever is needed for the hierarchy
                            IPyRefactoring pyRefactoring = AbstractPyRefactoring.getPyRefactoring();
                            if (pyRefactoring instanceof IPyRefactoring2) {
                                RefactoringRequest refactoringRequest = getRefactoringRequest(monitor);
View Full Code Here

TOP

Related Classes of com.python.pydev.ui.hierarchy.HierarchyNodeModel

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.