Package com.e1c.langtool.sync.change
Interface ChangeManager
- All Superinterfaces:
EditingChangeManager
- All Known Implementing Classes:
InMemoryChangeManagerProxy
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.eclipse.core.runtime.IPath>Gets the full path of files to remove.Collection<org.eclipse.core.runtime.IPath>Gets the full path of files to update.voidinitialize(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize the change manager to accept changes.booleanChecks if the manager is initialized.voidmarkRemoved(org.eclipse.core.runtime.IPath fullPath) Mark the file as removed in target project.voidmarkSynchronized(org.eclipse.core.runtime.IPath fullPath) Mark the file as synchronized with target project.Methods inherited from interface com.e1c.langtool.sync.change.EditingChangeManager
addPostChangeListener, clear, dispose, isDisposed, isMuted, markToRemove, markToRemove, markToSynchronize, markToSynchronize, moved, mute, removePostChangeListener, unmute, unmute
-
Method Details
-
initialize
void initialize(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize the change manager to accept changes. Clients must call this method must explicitly before use this manager in synchronization to get content fromgetFilesToUpdate()or fromgetFilesToRemove(). Calling this method several times has no effect if it is already initialized.- Parameters:
monitor- the monitor- See Also:
-
isInitialized
boolean isInitialized()Checks if the manager is initialized.- Returns:
- true, if the manager is initialized
-
getFilesToUpdate
Collection<org.eclipse.core.runtime.IPath> getFilesToUpdate()Gets the full path of files to update.- Returns:
- the collection of full path of files to update
-
getFilesToRemove
Collection<org.eclipse.core.runtime.IPath> getFilesToRemove()Gets the full path of files to remove.- Returns:
- the collection of full path of files to remove
-
markSynchronized
void markSynchronized(org.eclipse.core.runtime.IPath fullPath) Mark the file as synchronized with target project.- Parameters:
fullPath- the full path, cannot benull.
-
markRemoved
void markRemoved(org.eclipse.core.runtime.IPath fullPath) Mark the file as removed in target project.- Parameters:
fullPath- the full path, cannot benull.
-