Lines 18-23
Link Here
|
18 |
import org.eclipse.jdt.internal.compiler.*; |
18 |
import org.eclipse.jdt.internal.compiler.*; |
19 |
import org.eclipse.jdt.internal.compiler.Compiler; |
19 |
import org.eclipse.jdt.internal.compiler.Compiler; |
20 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
20 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
|
|
21 |
import org.eclipse.jdt.internal.compiler.env.ICompilationUnit; |
21 |
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; |
22 |
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; |
22 |
import org.eclipse.jdt.internal.compiler.problem.*; |
23 |
import org.eclipse.jdt.internal.compiler.problem.*; |
23 |
import org.eclipse.jdt.internal.compiler.util.SimpleSet; |
24 |
import org.eclipse.jdt.internal.compiler.util.SimpleSet; |
Lines 34-40
Link Here
|
34 |
* Provides the building and compilation mechanism |
35 |
* Provides the building and compilation mechanism |
35 |
* in common with the batch and incremental builders. |
36 |
* in common with the batch and incremental builders. |
36 |
*/ |
37 |
*/ |
37 |
public abstract class AbstractImageBuilder implements ICompilerRequestor { |
38 |
public abstract class AbstractImageBuilder implements ICompilerRequestor, ICompilationUnitLocator { |
38 |
|
39 |
|
39 |
protected JavaBuilder javaBuilder; |
40 |
protected JavaBuilder javaBuilder; |
40 |
protected State newState; |
41 |
protected State newState; |
Lines 436-445
Link Here
|
436 |
return folder; |
437 |
return folder; |
437 |
} |
438 |
} |
438 |
|
439 |
|
|
|
440 |
|
441 |
|
442 |
/* (non-Javadoc) |
443 |
* @see org.eclipse.jdt.internal.core.builder.ICompilationUnitLocator#fromIFile(org.eclipse.core.resources.IFile) |
444 |
*/ |
445 |
public ICompilationUnit fromIFile(IFile file) { |
446 |
return findSourceFile(file); |
447 |
} |
448 |
|
439 |
protected void initializeAnnotationProcessorManager(Compiler newCompiler) { |
449 |
protected void initializeAnnotationProcessorManager(Compiler newCompiler) { |
440 |
AbstractAnnotationProcessorManager annotationManager = JavaModelManager.getJavaModelManager().createAnnotationProcessorManager(); |
450 |
AbstractAnnotationProcessorManager annotationManager = JavaModelManager.getJavaModelManager().createAnnotationProcessorManager(); |
441 |
if (annotationManager != null) { |
451 |
if (annotationManager != null) { |
442 |
annotationManager.configureFromPlatform(newCompiler, javaBuilder.javaProject); |
452 |
annotationManager.configureFromPlatform(newCompiler, this, javaBuilder.javaProject); |
443 |
annotationManager.setErr(new PrintWriter(System.err)); |
453 |
annotationManager.setErr(new PrintWriter(System.err)); |
444 |
annotationManager.setOut(new PrintWriter(System.out)); |
454 |
annotationManager.setOut(new PrintWriter(System.out)); |
445 |
} |
455 |
} |