Example usage for org.eclipse.jdt.internal.compiler IErrorHandlingPolicy IErrorHandlingPolicy

List of usage examples for org.eclipse.jdt.internal.compiler IErrorHandlingPolicy IErrorHandlingPolicy

Introduction

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

Prototype

IErrorHandlingPolicy

Source Link

Usage

From source file:fr.inria.astor.core.manipulation.compiler.bytecode.JDTByteCodeCompiler.java

License:Open Source License

private IErrorHandlingPolicy getHandlingPolicy() {
    return new IErrorHandlingPolicy() {
        public boolean proceedOnErrors() {
            return true; // stop if there are some errors
        }//from  w w w . jav  a 2  s  .  c  om

        public boolean stopOnFirstError() {
            return false;
        }
    };
}

From source file:lombok.ast.ecj.EcjTreeBuilder.java

License:Open Source License

private static ProblemReporter createDefaultProblemReporter(CompilerOptions options) {
    return new ProblemReporter(new IErrorHandlingPolicy() {
        public boolean proceedOnErrors() {
            return true;
        }// w  w w  . j a v  a2  s  . c om

        public boolean stopOnFirstError() {
            return false;
        }

        @Override
        public boolean ignoreAllErrors() {
            return false;
        }
    }, options, new DefaultProblemFactory(Locale.ENGLISH));
}

From source file:lombok.ast.ecj.EcjTreeBuilder.java

License:Open Source License

private static ProblemReporter createSilentProblemReporter(CompilerOptions options) {
    return new ProblemReporter(new IErrorHandlingPolicy() {
        public boolean proceedOnErrors() {
            return true;
        }//from   ww w  .j  a va 2s  .co m

        public boolean stopOnFirstError() {
            return false;
        }

        @Override
        public boolean ignoreAllErrors() {
            return false;
        }
    }, options, SILENT_PROBLEM_FACTORY);
}

From source file:lombok.RunTestsViaEcj.java

License:Open Source License

protected IErrorHandlingPolicy ecjErrorHandlingPolicy() {
    return new IErrorHandlingPolicy() {
        public boolean stopOnFirstError() {
            return true;
        }// ww  w. jav a2 s  .c  om

        public boolean proceedOnErrors() {
            return false;
        }

        @SuppressWarnings("all") // Added to the interface in later ecj version.
        public boolean ignoreAllErrors() {
            return false;
        }
    };
}

From source file:org.eclipse.jdt.core.dom.CompilationUnitResolver.java

License:Open Source License

protected static IErrorHandlingPolicy getHandlingPolicy() {

    // passes the initial set of files to the batch oracle (to avoid finding more than once the same units when case insensitive match)
    return new IErrorHandlingPolicy() {
        public boolean stopOnFirstError() {
            return false;
        }//from  w  w  w  .  j  ava  2 s  .  c o  m

        public boolean proceedOnErrors() {
            return false; // stop if there are some errors
        }
    };
}

From source file:org.eclipse.objectteams.otdt.tests.compiler.smap.AbstractSourceMapGeneratorTest.java

License:Open Source License

protected IErrorHandlingPolicy getErrorHandlingPolicy() {
    return new IErrorHandlingPolicy() {
        public boolean stopOnFirstError() {
            return false;
        }/*  w ww. ja va2  s. com*/

        public boolean proceedOnErrors() {
            return true;
        }

        public boolean ignoreAllErrors() {
            return false;
        }
    };
}

From source file:org.thiesen.ecj4ant.EcjTask.java

License:Open Source License

public IErrorHandlingPolicy getHandlingPolicy() {

    return new IErrorHandlingPolicy() {
        public boolean proceedOnErrors() {
            return true;
        }//from   w w w  . j  a v  a  2 s .c om

        public boolean stopOnFirstError() {
            return false;
        }

        public boolean ignoreAllErrors() {
            return false;
        }
    };
}