Example usage for org.eclipse.jdt.internal.compiler AbstractAnnotationProcessorManager setErr

List of usage examples for org.eclipse.jdt.internal.compiler AbstractAnnotationProcessorManager setErr

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler AbstractAnnotationProcessorManager setErr.

Prototype

public abstract void setErr(PrintWriter err);

Source Link

Document

Set the print writer for the standard error.

Usage

From source file:net.sf.j2s.core.builder.AbstractImageBuilder.java

License:Open Source License

protected void initializeAnnotationProcessorManager(Compiler newCompiler) {
    AbstractAnnotationProcessorManager annotationManager = JavaModelManager.getJavaModelManager()
            .createAnnotationProcessorManager();
    if (annotationManager != null) {
        annotationManager.configureFromPlatform(newCompiler, this, this.javaBuilder.javaProject);
        annotationManager.setErr(new PrintWriter(System.err));
        annotationManager.setOut(new PrintWriter(System.out));
    }//from ww w  .j av  a  2  s . c  om
    newCompiler.annotationProcessorManager = annotationManager;
}