Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a7f28e2bc42c14aa89916b0851da04c8ec26799b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
 * 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);

}

Back to the top