Package com.e1c.langtool.sync
Interface SynchronizationManager
- All Known Implementing Classes:
ProjectSynchronization
public interface SynchronizationManager
The manager of synchronization the translated project.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateChangeListener(StateChangeListener listener) Adds the state change listener to get changes from this translated project.Gets the equality state of synchronization.Gets the synchronization strategy.Gets the translated project.voidremoveStateChangeListener(StateChangeListener listener) Removes the state change listener from this translated project.voidsetSyncStrategy(SyncStrategy strategy) Sets the synchronization strategy.org.eclipse.core.runtime.IStatussynchronize(org.eclipse.core.runtime.IProgressMonitor monitor) Synchronize the project.
-
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
Sets the synchronization strategy.- Parameters:
strategy- the new sync strategy, cannot benull.
-
getEqualityState
EqualityState getEqualityState()Gets the equality state of synchronization.- Returns:
- the equality state, cannot return
null.
-
addStateChangeListener
Adds the state change listener to get changes from this translated project.- Parameters:
listener- the listener, cannot benull.
-
removeStateChangeListener
Removes the state change listener from this translated project.- Parameters:
listener- the listener, cannot benull.
-
synchronize
org.eclipse.core.runtime.IStatus synchronize(org.eclipse.core.runtime.IProgressMonitor monitor) Synchronize the project.Note: Caller of this method must respect that
servicecan start a job to sychronize this project and more correct way to call serviceSynchronizationService.startSync(ITranslatedProject)and wait untill job is done.- Parameters:
monitor- the monitor, cannot benull.- Returns:
- the status of operation, cannot return
null. - See Also:
-