blob: 92e5088e9e3765d01f715eeecb0458a6633b94ee [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.core.tests.builder;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.compiler.*;
public class TestBuilderParticipant extends CompilationParticipant {
public static CompilationParticipant PARTICIPANT;
public int aboutToBuild(IJavaProject project) {
return PARTICIPANT.aboutToBuild(project);
}
public void buildFinished(IJavaProject project) {
PARTICIPANT.buildFinished(project);
}
public void buildStarting(BuildContext[] files, boolean isBatchBuild) {
PARTICIPANT.buildStarting(files, isBatchBuild);
}
public void cleanStarting(IJavaProject project) {
PARTICIPANT.cleanStarting(project);
}
public boolean isActive(IJavaProject project) {
return PARTICIPANT != null;
}
public boolean isAnnotationProcessor() {
return PARTICIPANT != null && PARTICIPANT.isAnnotationProcessor();
}
public void processAnnotations(BuildContext[] files) {
PARTICIPANT.processAnnotations(files);
}
}