Interface ISynchronizationStrategyFactory


  • public interface ISynchronizationStrategyFactory
    Factory for synchronization strategies.
    See Also:
    ISynchronizationStrategy
    • 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 be null
        Returns:
        the default strategy identifier for the given project, 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 be null
        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 be null
        id - the synchronization strategy identifier, cannot be null
        Returns:
        the synchronization strategy with the given type, never null