Class InMemorySyncCacheEditor

java.lang.Object
com.e1c.langtool.internal.sync.InMemorySyncCacheEditor
All Implemented Interfaces:
SyncCacheEditor, SyncCache

public class InMemorySyncCacheEditor extends Object implements SyncCacheEditor
The basic implemetation of SyncCacheEditor that holds all data in memory.
  • Constructor Details

    • InMemorySyncCacheEditor

      public InMemorySyncCacheEditor(ITranslatedProject translatedProject)
  • Method Details

    • getProject

      public ITranslatedProject getProject()
      Description copied from interface: SyncCache
      Gets the translated project.
      Specified by:
      getProject in interface SyncCache
      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: SyncCache
      Gets the synchronized resources.
      Specified by:
      getSynchronizedResources in interface SyncCache
      Parameters:
      fullSourcePath - the full source path, cannot be null.
      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: SyncCache
      Gets the synchronized resources.
      Specified by:
      getSynchronizedResources in interface SyncCache
      Parameters:
      fullSourcePath - the full source path, cannot be null.
      synchronizerId - the synchronizer id, cannot be null.
      Returns:
      the synchronized project relative file path in translated project, cannot return null.
    • allSynchronizedResources

      public Collection<org.eclipse.core.runtime.IPath> allSynchronizedResources()
      Description copied from interface: SyncCache
      Gets all synchronized resources.
      Specified by:
      allSynchronizedResources in interface SyncCache
      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:
      putSyncronizedResources in interface SyncCacheEditor
    • clearSyncronizedResources

      public void clearSyncronizedResources(org.eclipse.core.runtime.IPath fullSourcePath, String syncronizerId)
      Specified by:
      clearSyncronizedResources in interface SyncCacheEditor