List of usage examples for org.eclipse.jdt.internal.core ASTHolderCUInfo ASTHolderCUInfo
ASTHolderCUInfo
From source file:org.eclipse.jdt.internal.core.CompilationUnit.java
License:Open Source License
public org.eclipse.jdt.core.dom.CompilationUnit makeConsistent(int astLevel, boolean resolveBindings, int reconcileFlags, HashMap problems, IProgressMonitor monitor) throws JavaModelException { if (isConsistent()) return null; try {/*from w w w.j a va2s . c om*/ JavaModelManager.getJavaModelManager().abortOnMissingSource.set(Boolean.TRUE); // create a new info and make it the current info // (this will remove the info and its children just before storing the new infos) if (astLevel != NO_AST || problems != null) { ASTHolderCUInfo info = new ASTHolderCUInfo(); info.astLevel = astLevel; info.resolveBindings = resolveBindings; info.reconcileFlags = reconcileFlags; info.problems = problems; openWhenClosed(info, monitor); org.eclipse.jdt.core.dom.CompilationUnit result = info.ast; info.ast = null; return result; } else { openWhenClosed(createElementInfo(), monitor); return null; } } finally { JavaModelManager.getJavaModelManager().abortOnMissingSource.set(null); } }