Lines 55-61
Link Here
|
55 |
import org.eclipse.jdt.internal.core.BinaryMember; |
55 |
import org.eclipse.jdt.internal.core.BinaryMember; |
56 |
import org.eclipse.jdt.internal.core.CancelableNameEnvironment; |
56 |
import org.eclipse.jdt.internal.core.CancelableNameEnvironment; |
57 |
import org.eclipse.jdt.internal.core.CancelableProblemFactory; |
57 |
import org.eclipse.jdt.internal.core.CancelableProblemFactory; |
58 |
import org.eclipse.jdt.internal.core.INameEnviromentWithProgress; |
58 |
import org.eclipse.jdt.internal.core.INameEnvironmentWithProgress; |
59 |
import org.eclipse.jdt.internal.core.JavaProject; |
59 |
import org.eclipse.jdt.internal.core.JavaProject; |
60 |
import org.eclipse.jdt.internal.core.NameLookup; |
60 |
import org.eclipse.jdt.internal.core.NameLookup; |
61 |
import org.eclipse.jdt.internal.core.SourceRefElement; |
61 |
import org.eclipse.jdt.internal.core.SourceRefElement; |
Lines 603-609
Link Here
|
603 |
int flags, |
603 |
int flags, |
604 |
IProgressMonitor monitor) { |
604 |
IProgressMonitor monitor) { |
605 |
|
605 |
|
606 |
INameEnviromentWithProgress environment = null; |
606 |
INameEnvironmentWithProgress environment = null; |
607 |
CancelableProblemFactory problemFactory = null; |
607 |
CancelableProblemFactory problemFactory = null; |
608 |
try { |
608 |
try { |
609 |
if (monitor != null) { |
609 |
if (monitor != null) { |
Lines 612-618
Link Here
|
612 |
} |
612 |
} |
613 |
Classpath[] allEntries = new Classpath[classpaths.size()]; |
613 |
Classpath[] allEntries = new Classpath[classpaths.size()]; |
614 |
classpaths.toArray(allEntries); |
614 |
classpaths.toArray(allEntries); |
615 |
environment = new NameEnviromentWithProgress(allEntries, null, monitor); |
615 |
environment = new NameEnvironmentWithProgress(allEntries, null, monitor); |
616 |
problemFactory = new CancelableProblemFactory(monitor); |
616 |
problemFactory = new CancelableProblemFactory(monitor); |
617 |
CompilerOptions compilerOptions = getCompilerOptions(options, (flags & ICompilationUnit.ENABLE_STATEMENTS_RECOVERY) != 0); |
617 |
CompilerOptions compilerOptions = getCompilerOptions(options, (flags & ICompilationUnit.ENABLE_STATEMENTS_RECOVERY) != 0); |
618 |
compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0; |
618 |
compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0; |
Lines 652-665
Link Here
|
652 |
IProgressMonitor monitor) throws JavaModelException { |
652 |
IProgressMonitor monitor) throws JavaModelException { |
653 |
|
653 |
|
654 |
CompilationUnitDeclaration unit = null; |
654 |
CompilationUnitDeclaration unit = null; |
655 |
INameEnviromentWithProgress environment = null; |
655 |
INameEnvironmentWithProgress environment = null; |
656 |
CancelableProblemFactory problemFactory = null; |
656 |
CancelableProblemFactory problemFactory = null; |
657 |
CompilationUnitResolver resolver = null; |
657 |
CompilationUnitResolver resolver = null; |
658 |
try { |
658 |
try { |
659 |
if (javaProject == null) { |
659 |
if (javaProject == null) { |
660 |
Classpath[] allEntries = new Classpath[classpaths.size()]; |
660 |
Classpath[] allEntries = new Classpath[classpaths.size()]; |
661 |
classpaths.toArray(allEntries); |
661 |
classpaths.toArray(allEntries); |
662 |
environment = new NameEnviromentWithProgress(allEntries, null, monitor); |
662 |
environment = new NameEnvironmentWithProgress(allEntries, null, monitor); |
663 |
} else { |
663 |
} else { |
664 |
environment = new CancelableNameEnvironment((JavaProject) javaProject, owner, monitor); |
664 |
environment = new CancelableNameEnvironment((JavaProject) javaProject, owner, monitor); |
665 |
} |
665 |
} |