Package com.e1c.langtool.sync
Interface SynchronizationService
- All Superinterfaces:
IManagedService
- All Known Subinterfaces:
InternalSynchronizationService
- All Known Implementing Classes:
ProjectSynchronizationService
The Interface of Synchronization Service allows to manage changes for synchronizing projects, to
get
sync manager to run synchronization proccess.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateChangeListener(StateChangeListener listener) Adds the state change listener to get changes from all translated projects.getChangeManager(ITranslatedProject translatedProject) Gets the change manager for the giventranslated project.Gets the source change manager forsource project.getState(ITranslatedProject project) Gets the state of synchronization for the translated project.getState(org.eclipse.core.resources.IProject project) Gets the state of synchronization for the translated project.Gets the synchronization manager for the translated project.getSynchronizationManager(org.eclipse.core.resources.IProject project) Gets the synchronization manager for the translated project.voidremoveStateChangeListener(StateChangeListener listener) Removes the state change listener from all translated projects.org.eclipse.core.runtime.jobs.JobstartSync(ITranslatedProject project) Start async process of project synchronization.voidStart async (each project in different job) synchronization of all translated projects.voidsyncAllProjects(org.eclipse.core.runtime.IProgressMonitor monitor) Synchronize all translated projects of all synchronizable projects.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getChangeManager
Gets the change manager for the giventranslated project.- Parameters:
translatedProject- the translated project, cannot benull.- Returns:
- the change manager, cannot return
null.
-
getSourceChangeManager
Gets the source change manager forsource project.- Parameters:
project- the project, cannot benull.- Returns:
- the source change manager, cannot return
null.
-
getState
Gets the state of synchronization for the translated project.- Parameters:
project- the translated project, cannot benull.- Returns:
- the state of synchronization, cannot return
null.
-
getState
Gets the state of synchronization for the translated project.- Parameters:
project- the translated project, cannot benull.- Returns:
- the state of synchronization, cannot return
null.
-
addStateChangeListener
Adds the state change listener to get changes from all translated projects.- Parameters:
listener- the listener, cannot benull.
-
removeStateChangeListener
Removes the state change listener from all translated projects.- Parameters:
listener- the listener, cannot benull.
-
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
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 benull.- Returns:
- the job of synchronization, cannot return
null.
-
getSynchronizationManager
Gets the synchronization manager for the translated project.- Parameters:
project- the translated project, cannot benull.- Returns:
- the synchronization manager, cannot return
null.
-
getSynchronizationManager
Gets the synchronization manager for the translated project.- Parameters:
project- the translated project, cannot benull.- Returns:
- the synchronization manager, cannot return
null.
-