blob: a7f28e2bc42c14aa89916b0851da04c8ec26799b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 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 Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.core.mapping;
import org.eclipse.core.resources.mapping.ModelProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IAdapterManager;
/**
* Factory interface for creating a participant for use with an
* {@link ISynchronizationScopeManager}. This factory should be
* assocated with a {@link ModelProvider} using the {@link IAdaptable}
* mechanism.
* <p>
* This interface may be implemented by clients.
*
* @see ModelProvider
* @see IAdaptable
* @see IAdapterManager
* @see ISynchronizationScopeManager
* @see ISynchronizationScopeParticipant
* @since 3.2
*/
public interface ISynchronizationScopeParticipantFactory {
/**
* Create a participant in the scope management process for the given model provider.
* @param provider the model provider
* @param scope the scope
* @return a participant in the scope management process
*/
ISynchronizationScopeParticipant createParticipant(ModelProvider provider, ISynchronizationScope scope);
}