Package com.e1c.langtool.internal.sync
Class InMemorySyncCacheEditor
java.lang.Object
com.e1c.langtool.internal.sync.InMemorySyncCacheEditor
- All Implemented Interfaces:
SyncCacheEditor,SyncCache
The basic implemetation of
SyncCacheEditor that holds all data in memory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.eclipse.core.runtime.IPath>Gets all synchronized resources.voidclearSyncronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String syncronizerId) Gets the translated project.Collection<org.eclipse.core.runtime.IPath>getSynchronizedResources(org.eclipse.core.runtime.IPath fullSourcePath) Gets the synchronized resources.Collection<org.eclipse.core.runtime.IPath>getSynchronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String synchronizerId) Gets the synchronized resources.voidputSyncronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String syncronizerId, Collection<org.eclipse.core.runtime.IPath> syncronizedResources)
-
Constructor Details
-
InMemorySyncCacheEditor
-
-
Method Details
-
getProject
Description copied from interface:SyncCacheGets the translated project.- Specified by:
getProjectin interfaceSyncCache- Returns:
- the project, cannot return
null.
-
getSynchronizedResources
public Collection<org.eclipse.core.runtime.IPath> getSynchronizedResources(org.eclipse.core.runtime.IPath fullSourcePath) Description copied from interface:SyncCacheGets the synchronized resources.- Specified by:
getSynchronizedResourcesin interfaceSyncCache- Parameters:
fullSourcePath- the full source path, cannot benull.- Returns:
- the synchronized project relative file path in translated project, cannot return
null.
-
getSynchronizedResources
public Collection<org.eclipse.core.runtime.IPath> getSynchronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String synchronizerId) Description copied from interface:SyncCacheGets the synchronized resources.- Specified by:
getSynchronizedResourcesin interfaceSyncCache- Parameters:
fullSourcePath- the full source path, cannot benull.synchronizerId- the synchronizer id, cannot benull.- Returns:
- the synchronized project relative file path in translated project, cannot return
null.
-
allSynchronizedResources
Description copied from interface:SyncCacheGets all synchronized resources.- Specified by:
allSynchronizedResourcesin interfaceSyncCache- Returns:
- the collection of synchronized project relative file paths in translated project,
cannot return
null.
-
putSyncronizedResources
public void putSyncronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String syncronizerId, Collection<org.eclipse.core.runtime.IPath> syncronizedResources) - Specified by:
putSyncronizedResourcesin interfaceSyncCacheEditor
-
clearSyncronizedResources
public void clearSyncronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String syncronizerId) - Specified by:
clearSyncronizedResourcesin interfaceSyncCacheEditor
-