Package org.python.pydev.core.resource_stubs

Examples of org.python.pydev.core.resource_stubs.FileMock


        };
        ProjectMock project = new ProjectMock();
        project.setNature(new PythonNatureStub());

        FolderMock mod1 = new FolderMock("mod1");
        FileMock initFromMod1 = new FileMock("__init__.py"); //visited

        mod1.addMember(initFromMod1);
        mod1.addMember(new FileMock("a.py")); //visited
        mod1.addMember(new FileMock("unrelated"));

        FolderMock mod2 = new FolderMock("mod2");
        mod1.addMember(mod2);

        mod2.addMember(new FileMock("__init__.py")); // visited

        FolderMock mod3 = new FolderMock("mod3");
        mod1.addMember(mod3);
        mod3.addMember(new FileMock("c.py")); //not visited because mod3 has no __init__.

        project.addMember(mod1);

        visitor.memo = new HashMap<String, Object>();
        visitor.visitAddedResource(initFromMod1, null, null);
View Full Code Here

TOP

Related Classes of org.python.pydev.core.resource_stubs.FileMock

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.