Search in sources :

Example 1 with ProjectStub

use of org.python.pydev.ast.codecompletion.revisited.ProjectStub in project Pydev by fabioz.

the class RefactoringRenameTestBase method restoreProjectPythonPathRefactoring.

/**
 * A method that creates a project that references no other project
 *
 * @param force whether the creation of the new nature should be forced
 * @param path the pythonpath for the new nature
 * @param name the name for the project
 * @return true if the creation was needed and false if it wasn't
 */
protected boolean restoreProjectPythonPathRefactoring(boolean force, String path, String name) {
    PythonNature n = checkNewNature(name, force);
    if (n != null) {
        natureRefactoring = n;
        ProjectStub projectFromNatureRefactoring = new ProjectStub(name, path, new IProject[0], new IProject[0]);
        setAstManager(path, projectFromNatureRefactoring, natureRefactoring);
        return true;
    }
    return false;
}
Also used : ProjectStub(org.python.pydev.ast.codecompletion.revisited.ProjectStub) IPythonNature(org.python.pydev.core.IPythonNature) PythonNature(org.python.pydev.plugin.nature.PythonNature)

Aggregations

ProjectStub (org.python.pydev.ast.codecompletion.revisited.ProjectStub)1 IPythonNature (org.python.pydev.core.IPythonNature)1 PythonNature (org.python.pydev.plugin.nature.PythonNature)1