Class AbstractBmObjectSynchronizer

java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractBmObjectSynchronizer
All Implemented Interfaces:
ResourceSynchronizer
Direct Known Subclasses:
AdditionalIndexSynchronizer, BmObjectDefaultSynchronizer, DcsTemplateSynchronizer, FormObjectSynchronizer, HtmlDocSynchronizer, MdObjectSynchronizer, MoxelSynchronizer

public abstract class AbstractBmObjectSynchronizer extends Object implements ResourceSynchronizer
  • Field Details

  • Constructor Details

    • AbstractBmObjectSynchronizer

      public AbstractBmObjectSynchronizer()
  • Method Details

    • synchronize

      public Collection<org.eclipse.core.resources.IResource> synchronize(org.eclipse.core.resources.IFile sourceFile, ITranslatingProject sourceProject, ITranslatedProject target, SyncSession syncSession, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ResourceSynchronizer
      Synchronize given source file to target project with translating.
      Specified by:
      synchronize in interface ResourceSynchronizer
      Parameters:
      sourceFile - the source file
      sourceProject - the source project
      target - the target
      syncSession - the session
      monitor - the monitor
      Returns:
      the collection of synchronized files in target project, cannot return null.
    • remove

      public Collection<org.eclipse.core.resources.IFile> remove(org.eclipse.core.resources.IFile sourceFile, ITranslatingProject sourceProject, ITranslatedProject target, SyncSession session, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ResourceSynchronizer
      Removes the files in target project by given deleted source file. Synchronizer may not specify remove method, in this case all previously synchronized resources will be removed from the target project.
      Specified by:
      remove in interface ResourceSynchronizer
      Parameters:
      sourceFile - the source file
      sourceProject - the source project
      target - the target
      session - the session
      monitor - the monitor
      Returns:
      the collection of removed files in target project, cannot return null.
    • synchronize

      protected org.eclipse.core.resources.IFile synchronize(IBmObject source, org.eclipse.core.resources.IProject targetProject, org.eclipse.core.resources.IProject sourceProject, org.eclipse.core.resources.IFile sourceFile, Object session, IProjectTranslationProvider translationProvider, org.eclipse.core.runtime.IProgressMonitor monitor)
    • createNewCopier

      protected BmObjectCopier createNewCopier(org.eclipse.core.resources.IProject project, IBmPlatformTransaction transaction, IBmObject source, IProjectTranslationProvider translationProvider, org.eclipse.core.resources.IProject targetProject, Version runtimeVersion)
    • copyBmObject

      protected IBmObject copyBmObject(IBmObject source, org.eclipse.core.resources.IProject targetProject, IBmPlatformTransaction transaction, IProjectTranslationProvider translationProvider)