Package com.e1c.langtool.v8.dt.sync
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
-
Field Summary
FieldsFields inherited from class com.e1c.langtool.v8.dt.sync.AbstractExternalPropertySynchronizer
emfObjectProvider, modelManager, qualifiedNameConverter, qualifiedNameFilePathConverter, topObjectFqnGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the unique ID of the synchronizer.protected org.eclipse.core.resources.IFilegetSourceFile(org.eclipse.core.resources.IFile sourceFile, IProjectTranslationProvider translationProvider) Gets the source file to copy from.protected org.eclipse.core.runtime.IStatussynchronize(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) Methods inherited from class com.e1c.langtool.v8.dt.sync.AbstractExternalPropertySynchronizer
createParentFolders, executeInTransaction, synchronizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.sync.ResourceSynchronizer
remove
-
Field Details
-
FILE_NAME_SEGMENT_SPLITTER
- See Also:
-
-
Constructor Details
-
ReplacebleExternalPropertySynchronizer
public ReplacebleExternalPropertySynchronizer()
-
-
Method Details
-
getId
Description copied from interface:ResourceSynchronizerGets 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:
synchronizein classAbstractExternalPropertySynchronizer
-
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 patternOriginalFileName_LanguageCode.extensionif exists, otherwise returns the source file.- Parameters:
sourceFile- the source filetranslationProvider- the translation provider, that provides project language code.- Returns:
- the source file, never returns
null.
-