Package com.e1c.langtool.sync.change
Interface EditingChangeManager
- All Known Subinterfaces:
ChangeManager,SourceChangeManager
- All Known Implementing Classes:
InMemoryChangeManagerProxy,SourceChangeManagerWrapper
public interface EditingChangeManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostChangeListener(PostChangeListener listener) Adds the post change listener.voidclear()Clear all changes in the manager.voiddispose()Dispose change manager.booleanChecks if the change manager is disposed.booleanisMuted()Checks if the change manager is muted of sending event notifications.voidmarkToRemove(org.eclipse.core.resources.IFile file) Mark the file to remove in translated project.voidmarkToRemove(org.eclipse.core.runtime.IPath fullPath) Mark the file (its full path) to remove in translated project.voidmarkToSynchronize(org.eclipse.core.resources.IFile file) Mark the file to synchronize to translated project if it exists.voidmarkToSynchronize(org.eclipse.core.runtime.IPath fullPath) Mark the file (its full path) to synchronize to translated project.voidmoved(org.eclipse.core.resources.IFile from, org.eclipse.core.resources.IFile to) Mark file as moved to enother place.voidmute()Mute event notification.voidremovePostChangeListener(PostChangeListener listener) Removes the post change listener.voidunmute()Unmute the change manager to send event notifications.voidunmute(ChangeEvent event) Unmute the change manager to send event notifications and notify an event.
-
Method Details
-
dispose
void dispose()Dispose change manager. -
isDisposed
boolean isDisposed()Checks if the change manager is disposed.- Returns:
- true, if the manager is disposed
-
clear
void clear()Clear all changes in the manager. -
mute
void mute()Mute event notification. -
isMuted
boolean isMuted()Checks if the change manager is muted of sending event notifications.- Returns:
- true, if the change manager is muted
-
unmute
void unmute()Unmute the change manager to send event notifications. -
unmute
Unmute the change manager to send event notifications and notify an event.- Parameters:
event- the event
-
markToSynchronize
void markToSynchronize(org.eclipse.core.resources.IFile file) Mark the file to synchronize to translated project if it exists. Call this method equivalent to call:if (!file.isAccesseble()) return; markToSynchronize(file.getFullPath());- Parameters:
file- the file to synchronize- See Also:
-
moved
void moved(org.eclipse.core.resources.IFile from, org.eclipse.core.resources.IFile to) Mark file as moved to enother place.- Parameters:
from- the from fileto- the to file
-
markToRemove
void markToRemove(org.eclipse.core.resources.IFile file) Mark the file to remove in translated project.- Parameters:
file- the file
-
markToSynchronize
void markToSynchronize(org.eclipse.core.runtime.IPath fullPath) Mark the file (its full path) to synchronize to translated project.- Parameters:
fullPath- the full path
-
markToRemove
void markToRemove(org.eclipse.core.runtime.IPath fullPath) Mark the file (its full path) to remove in translated project.- Parameters:
fullPath- the full path
-
addPostChangeListener
Adds the post change listener.- Parameters:
listener- the listener
-
removePostChangeListener
Removes the post change listener.- Parameters:
listener- the listener
-