Package com.e1c.langtool.v8.dt.sync
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 Summary
FieldsModifier and TypeFieldDescriptionprotected EmfObjectProviderprotected IBmModelManagerprotected org.eclipse.xtext.naming.IQualifiedNameConverterprotected IQualifiedNameFilePathConverterprotected TranslatedTopObjectFqnGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final voidcreateParentFolders(org.eclipse.core.resources.IFile file) protected booleanManages the transaction execution mode for the synchronizer.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) Synchronize given source file to target project with translating.protected abstract 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.sync.ResourceSynchronizer
getId, remove
-
Field Details
-
modelManager
-
qualifiedNameFilePathConverter
-
qualifiedNameConverter
@Inject protected org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter -
emfObjectProvider
-
topObjectFqnGenerator
-
-
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:ResourceSynchronizerSynchronize given source file to target project with translating.- Specified by:
synchronizein interfaceResourceSynchronizer- Parameters:
sourceFile- the source filesourceProject- the source projecttarget- the targetsession- the sessionmonitor- 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
-