Interface ISynchronizationStrategyFactory
-
public interface ISynchronizationStrategyFactory
Factory for synchronization strategies.- See Also:
ISynchronizationStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ISynchronizationStrategyFactory.ISynchronizationStrategyDescription
Describes synchronization strategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISynchronizationStrategy
create(org.eclipse.core.resources.IProject project)
Create a synchronization strategy with default type for the given project.ISynchronizationStrategy
create(org.eclipse.core.resources.IProject project, String strategyId)
Create a synchronization strategy with the given type for the given project.String
getDefaultStrategyId(org.eclipse.core.resources.IProject project)
Returns the default strategy identifier for the given project.ISynchronizationStrategyFactory.ISynchronizationStrategyDescription
getStrategyDescription(String strategyId)
Returns the strategy description about strategy with the given identifier.Collection<ISynchronizationStrategyFactory.ISynchronizationStrategyDescription>
getStrategyDescriptions()
Returns a collection of descriptions for all registered strategies.
-
-
-
Method Detail
-
getDefaultStrategyId
String getDefaultStrategyId(org.eclipse.core.resources.IProject project)
Returns the default strategy identifier for the given project.- Parameters:
project
- the project to get default strategy identifier identifier for, cannot benull
- Returns:
- the default strategy identifier for the given project, never
null
-
getStrategyDescription
ISynchronizationStrategyFactory.ISynchronizationStrategyDescription getStrategyDescription(String strategyId)
Returns the strategy description about strategy with the given identifier.- Parameters:
id
- the strategy identifier, cannot benull
- Returns:
- the strategy description about strategy with the given identifier, never
null
-
getStrategyDescriptions
Collection<ISynchronizationStrategyFactory.ISynchronizationStrategyDescription> getStrategyDescriptions()
Returns a collection of descriptions for all registered strategies.- Returns:
- a collection of descriptions for all registered strategies, never
null
-
create
ISynchronizationStrategy create(org.eclipse.core.resources.IProject project)
Create a synchronization strategy with default type for the given project.- Parameters:
project
- the project to create strategy for, cannot benull
- Returns:
- the synchronization strategy with default type, never
null
-
create
ISynchronizationStrategy create(org.eclipse.core.resources.IProject project, String strategyId)
Create a synchronization strategy with the given type for the given project.- Parameters:
project
- the project to create strategy for, cannot benull
id
- the synchronization strategy identifier, cannot benull
- Returns:
- the synchronization strategy with the given type, never
null
-
-