1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler;
13 public class DefaultErrorHandlingPolicies {
16 * Accumulate all problems, then exit without proceeding.
18 * Typically, the #proceedWithProblems(Problem[]) should show the problems.
21 public static IErrorHandlingPolicy exitAfterAllProblems() {
22 return new IErrorHandlingPolicy() {
23 public boolean stopOnFirstError() {
27 public boolean proceedOnErrors() {
34 * Exit without proceeding on the first problem wich appears to be an error.
37 public static IErrorHandlingPolicy exitOnFirstError() {
38 return new IErrorHandlingPolicy() {
39 public boolean stopOnFirstError() {
43 public boolean proceedOnErrors() {
50 * Proceed on the first error met.
53 public static IErrorHandlingPolicy proceedOnFirstError() {
54 return new IErrorHandlingPolicy() {
55 public boolean stopOnFirstError() {
59 public boolean proceedOnErrors() {
66 * Accumulate all problems, then proceed with them.
69 public static IErrorHandlingPolicy proceedWithAllProblems() {
70 return new IErrorHandlingPolicy() {
71 public boolean stopOnFirstError() {
75 public boolean proceedOnErrors() {