Class ReplacebleExternalPropertySynchronizer

java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractExternalPropertySynchronizer
com.e1c.langtool.v8.dt.sync.ReplacebleExternalPropertySynchronizer
All Implemented Interfaces:
ResourceSynchronizer
Direct Known Subclasses:
FormPictureSynchronizer, HelpPicturesSynchronizer, MdPictureSynchronizer, SchemePictureSynchronizer, TemplatePicturesSynchronizer

public class ReplacebleExternalPropertySynchronizer extends AbstractExternalPropertySynchronizer
  • Field Details

  • Constructor Details

    • ReplacebleExternalPropertySynchronizer

      public ReplacebleExternalPropertySynchronizer()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: ResourceSynchronizer
      Gets the unique ID of the synchronizer.
      Returns:
      the ID of the synchronizer, cannot return null.
    • synchronize

      protected 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)
      Specified by:
      synchronize in class AbstractExternalPropertySynchronizer
    • getSourceFile

      protected org.eclipse.core.resources.IFile getSourceFile(org.eclipse.core.resources.IFile sourceFile, IProjectTranslationProvider translationProvider)
      Gets the source file to copy from. Can return replaceable file with pattern OriginalFileName_LanguageCode.extension if exists, otherwise returns the source file.
      Parameters:
      sourceFile - the source file
      translationProvider - the translation provider, that provides project language code.
      Returns:
      the source file, never returns null.