Interface SynchronizationService

All Superinterfaces:
IManagedService
All Known Subinterfaces:
InternalSynchronizationService
All Known Implementing Classes:
ProjectSynchronizationService

public interface SynchronizationService extends IManagedService
The Interface of Synchronization Service allows to manage changes for synchronizing projects, to get sync manager to run synchronization proccess.
See Also:
  • Field Details

  • Method Details

    • getChangeManager

      ChangeManager getChangeManager(ITranslatedProject translatedProject)
      Gets the change manager for the given translated project.
      Parameters:
      translatedProject - the translated project, cannot be null.
      Returns:
      the change manager, cannot return null.
    • getSourceChangeManager

      SourceChangeManager getSourceChangeManager(SynchronizableProject project)
      Gets the source change manager for source project.
      Parameters:
      project - the project, cannot be null.
      Returns:
      the source change manager, cannot return null.
    • getState

      EqualityState getState(org.eclipse.core.resources.IProject project)
      Gets the state of synchronization for the translated project.
      Parameters:
      project - the translated project, cannot be null.
      Returns:
      the state of synchronization, cannot return null.
    • getState

      EqualityState getState(ITranslatedProject project)
      Gets the state of synchronization for the translated project.
      Parameters:
      project - the translated project, cannot be null.
      Returns:
      the state of synchronization, cannot return null.
    • addStateChangeListener

      void addStateChangeListener(StateChangeListener listener)
      Adds the state change listener to get changes from all translated projects.
      Parameters:
      listener - the listener, cannot be null.
    • removeStateChangeListener

      void removeStateChangeListener(StateChangeListener listener)
      Removes the state change listener from all translated projects.
      Parameters:
      listener - the listener, cannot be null.
    • syncAllProjects

      void syncAllProjects(org.eclipse.core.runtime.IProgressMonitor monitor)
      Synchronize all translated projects of all synchronizable projects.
      Parameters:
      monitor - the monitor
    • startSyncAllProjects

      void startSyncAllProjects()
      Start async (each project in different job) synchronization of all translated projects. Call this method has no effect if synchronization of particular translated project is running.
      See Also:
    • startSync

      org.eclipse.core.runtime.jobs.Job startSync(ITranslatedProject project)
      Start async process of project synchronization. Call this method has no effect if synchronization of the translated project is running.
      Parameters:
      project - the project, cannot be null.
      Returns:
      the job of synchronization, cannot return null.
    • getSynchronizationManager

      SynchronizationManager getSynchronizationManager(org.eclipse.core.resources.IProject project)
      Gets the synchronization manager for the translated project.
      Parameters:
      project - the translated project, cannot be null.
      Returns:
      the synchronization manager, cannot return null.
    • getSynchronizationManager

      SynchronizationManager getSynchronizationManager(ITranslatedProject project)
      Gets the synchronization manager for the translated project.
      Parameters:
      project - the translated project, cannot be null.
      Returns:
      the synchronization manager, cannot return null.