KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > core > mapping > ISynchronizationScopeParticipantFactory


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.core.mapping;
12
13 import org.eclipse.core.resources.mapping.ModelProvider;
14 import org.eclipse.core.runtime.IAdaptable;
15 import org.eclipse.core.runtime.IAdapterManager;
16
17 /**
18  * Factory interface for creating a participant for use with an
19  * {@link ISynchronizationScopeManager}. This factory should be
20  * assocated with a {@link ModelProvider} using the {@link IAdaptable}
21  * mechanism.
22  * <p>
23  * This interface may be implemented by clients.
24  *
25  * @see ModelProvider
26  * @see IAdaptable
27  * @see IAdapterManager
28  * @see ISynchronizationScopeManager
29  * @see ISynchronizationScopeParticipant
30  * @since 3.2
31  */

32 public interface ISynchronizationScopeParticipantFactory {
33
34     /**
35      * Create a participant in the scope management process for the given model provider.
36      * @param provider the model provider
37      * @param scope the scope
38      * @return a participant in the scope management process
39      */

40     ISynchronizationScopeParticipant createParticipant(ModelProvider provider, ISynchronizationScope scope);
41
42 }
43
Popular Tags