blob: f41d301a327319981c0a911004b1d64fc7f5f57e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*******************************************************************************/
package org.eclipse.ptp.rdt.sync.core.serviceproviders;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.ptp.services.core.IServiceProvider;
/**
* Provides synchronization services.
*/
public interface ISyncServiceProvider extends IServiceProvider {
/**
* Performs synchronization.
*
* @param delta
* resources requiring synchronization
* @param monitor
* progress monitor for monitoring or canceling synch
* @param force
* if true, the synchronization will be guaranteed to happen,
* otherwise the synchronization may be postponed to a future
* call
* @throws CoreException
* if synchronization fails
*/
public void synchronize(IResourceDelta delta, IProgressMonitor monitor, boolean force) throws CoreException;
}