Class AbstractExternalPropertySynchronizer

java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractExternalPropertySynchronizer
All Implemented Interfaces:
ResourceSynchronizer
Direct Known Subclasses:
ExternalPropertySynchronizer, ReplacebleExternalPropertySynchronizer

public abstract class AbstractExternalPropertySynchronizer extends Object implements ResourceSynchronizer
  • Field Details

  • Constructor Details

    • AbstractExternalPropertySynchronizer

      public AbstractExternalPropertySynchronizer()
  • Method Details

    • synchronize

      public Collection<org.eclipse.core.resources.IResource> synchronize(org.eclipse.core.resources.IFile sourceFile, ITranslatingProject sourceProject, ITranslatedProject target, SyncSession session, 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
      session - the session
      monitor - the monitor
      Returns:
      the collection of synchronized files in target project, cannot return null.
    • synchronize

      protected abstract org.eclipse.core.runtime.IStatus synchronize(org.eclipse.core.resources.IFile sourceFile, org.eclipse.emf.ecore.EObject owner, org.eclipse.core.resources.IProject target, org.eclipse.core.resources.IFile targetFile, BmSyncSession bmSession, IProjectTranslationProvider translationProvider, org.eclipse.core.runtime.IProgressMonitor monitor)
    • createParentFolders

      protected static final void createParentFolders(org.eclipse.core.resources.IFile file) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • executeInTransaction

      protected boolean executeInTransaction()
      Manages the transaction execution mode for the synchronizer. In case if the option is enabled the synchronization process is being executed in a single source configuration transaction. In case if the mode is disabled it's up to internal logic of the synchronization process to manage source configuration transactions
      Returns:
      True in case if the mode is enabled. False otherwise