blob: f82a1bfdc89e41d6d1061a35ad4c81336e801aaf [file] [log] [blame]
/*
* Copyright 2012 Dart project authors.
*
* Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.dart.tools.core.builder;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
/**
* Interface used by {@link BuildParticipant} when visiting resources in a {@link BuildEvent}
*
* @coverage dart.tools.core.builder
*/
public interface BuildVisitor extends CleanVisitor {
/**
* Called by {@link BuildEvent#traverse(BuildParticipant, boolean)} when a resource has been
* modified or deleted.
*
* @param delta the object describing the resource and the change (not <code>null</code>)
* @param monitor the progress monitor (not <code>null</code>) to use for reporting progress to
* the user. It is the caller's responsibility to call done() on the given monitor.
* @return <code>true</code> if the resource's children should be visited
*/
boolean visit(IResourceDelta delta, IProgressMonitor monitor) throws CoreException;
}