Interface SynchronizationManager

All Known Implementing Classes:
ProjectSynchronization

public interface SynchronizationManager
The manager of synchronization the translated project.
See Also:
  • Method Details

    • getTranslatedProject

      ITranslatedProject getTranslatedProject()
      Gets the translated project.
      Returns:
      the translated project, cannot return null.
    • getSyncStrategy

      SyncStrategy getSyncStrategy()
      Gets the synchronization strategy.
      Returns:
      the sync strategy, cannot return null.
    • setSyncStrategy

      void setSyncStrategy(SyncStrategy strategy)
      Sets the synchronization strategy.
      Parameters:
      strategy - the new sync strategy, cannot be null.
    • getEqualityState

      EqualityState getEqualityState()
      Gets the equality state of synchronization.
      Returns:
      the equality state, cannot return null.
    • addStateChangeListener

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

      void removeStateChangeListener(StateChangeListener listener)
      Removes the state change listener from this translated project.
      Parameters:
      listener - the listener, cannot be null.
    • synchronize

      org.eclipse.core.runtime.IStatus synchronize(org.eclipse.core.runtime.IProgressMonitor monitor)
      Synchronize the project.

      Note: Caller of this method must respect that service can start a job to sychronize this project and more correct way to call service SynchronizationService.startSync(ITranslatedProject) and wait untill job is done.

      Parameters:
      monitor - the monitor, cannot be null.
      Returns:
      the status of operation, cannot return null.
      See Also: