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;
}
Aggregations