}
final JobProgressComunicator jobProgressComunicator = new JobProgressComunicator(monitor,
"Rebuilding modules", IProgressMonitor.UNKNOWN, this);
final PythonNature nature = PythonNature.this;
try {
ICodeCompletionASTManager tempAstManager = astManager;
if (tempAstManager == null) {
tempAstManager = new ASTManager();
}
if (monitor.isCanceled()) {
return Status.OK_STATUS;
}
synchronized (tempAstManager.getLock()) {
astManager = tempAstManager;
tempAstManager.setProject(getProject(), nature, false); //it is a new manager, so, remove all deltas
//begins task automatically
tempAstManager.changePythonPath(paths, project, jobProgressComunicator);
if (monitor.isCanceled()) {
return Status.OK_STATUS;
}
saveAstManager();