Package org.python.pydev.editor.codecompletion.revisited

Examples of org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager


                                        .setText("Please specify the name of the module (i.e.: myapp.settings)");
                                return;
                            }

                            ICodeCompletionASTManager astManager = nature.getAstManager();
                            ProjectModulesManager modulesManager = (ProjectModulesManager) astManager
                                    .getModulesManager();
                            IModule moduleInDirectManager = modulesManager.getModuleInDirectManager(moduleName, nature,
                                    true);
                            if (moduleInDirectManager == null) {
                                labelErrorSettings.setText(com.aptana.shared_core.string.StringUtils.format("Module: %s could not be found.",
                                        moduleName));
                            } else {
View Full Code Here


        this.restorePythonPath(false);
    }

    public void __testIt() throws Exception {
        //change: returns itself too
        ProjectModulesManager modulesManager = (ProjectModulesManager) nature2.getAstManager().getModulesManager();
        assertEquals(1 + 1, modulesManager.getManagersInvolved(false).length);
        assertEquals(2 + 1, modulesManager.getManagersInvolved(true).length);
        assertEquals(0 + 1, modulesManager.getRefencingManagersInvolved(false).length);
        assertEquals(1 + 1, modulesManager.getRefencingManagersInvolved(true).length);

        ProjectModulesManager modulesManager2 = (ProjectModulesManager) nature.getAstManager().getModulesManager();
        assertEquals(0 + 1, modulesManager2.getManagersInvolved(false).length);
        assertEquals(1 + 1, modulesManager2.getManagersInvolved(true).length);
        assertEquals(1 + 1, modulesManager2.getRefencingManagersInvolved(false).length);
        assertEquals(2 + 1, modulesManager2.getRefencingManagersInvolved(true).length);
    }
View Full Code Here

                "A|A.py\n" +
                "B\r\n" +
                "D|0|E|1" +
                "";

        ProjectModulesManager manager = new ProjectModulesManager();
        HashMap<Integer, String> intToString = new HashMap<Integer, String>();
        intToString.put(0, "W.py");
        ModulesManager.handleFileContents(manager, contents, intToString);

        assertEquals(3, manager.modulesKeys.size());
View Full Code Here

                "A||A.py||\n" +
                "B|\r\n" +
                "D|0|E|1\n" +
                "";

        ProjectModulesManager manager = new ProjectModulesManager();
        HashMap<Integer, String> intToString = new HashMap<Integer, String>();
        intToString.put(0, "W.py");
        ModulesManager.handleFileContents(manager, contents, intToString);

        assertEquals(3, manager.modulesKeys.size());
View Full Code Here

        SourceModule.TESTING = true;
    }

    public void tearDown() throws Exception {
        CompiledModule.COMPILED_MODULES_ENABLED = false;
        ProjectModulesManager projectModulesManager = ((ProjectModulesManager) nature.getAstManager()
                .getModulesManager());
        projectModulesManager.doRemoveSingleModule(new ModulesKey("foo", null));
        projectModulesManager.doRemoveSingleModule(new ModulesKey("foo0", null));
        projectModulesManager.doRemoveSingleModule(new ModulesKey("fooIn1", null));
        projectModulesManager.doRemoveSingleModule(new ModulesKey("fooIn10", null));

        projectModulesManager = ((ProjectModulesManager) nature2.getAstManager().getModulesManager());
        projectModulesManager.doRemoveSingleModule(new ModulesKey("fooIn2", null));
        projectModulesManager.doRemoveSingleModule(new ModulesKey("fooIn20", null));

        if (baseDir.exists()) {
            FileUtils.deleteDirectoryTree(baseDir);
        }
        super.tearDown();
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager

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.