Package com.e1c.langtool.v8.dt.sync
Class AbstractBmSyncSession
java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractBmSyncSession
- All Implemented Interfaces:
SyncSession,BmSyncSession
- Direct Known Subclasses:
ConfigurationSyncSession,ExtensionSyncSession,ExternalObjectSyncSession
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IDtProjectManagerprotected Objectprotected IBmModelprotected final ITranslatedProjectprotected IWorkspaceOrchestrator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusafterSynchronized(org.eclipse.core.runtime.IProgressMonitor monitor) After synchronized the target project.org.eclipse.core.runtime.IStatusbeforeSynchronizing(org.eclipse.core.runtime.IProgressMonitor monitor) Before synchronizing projects, but after creating target project.voidBegins synchronization operation.voidEnds the operation.Gets the batch session lock handler, that allows to executeIBmTaskin batch session.Collection<org.eclipse.core.runtime.IPath>Gets the resources skipped duaring this sync session.voidstoreDelayedFiles(org.eclipse.core.resources.IFile file, InputStream stream) Store delayed files.protected booleanwaitUntilStarted(org.eclipse.core.resources.IProject project, Duration waitDuration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.v8.dt.sync.BmSyncSession
getTranslationProviderMethods inherited from interface com.e1c.langtool.sync.SyncSession
createProject
-
Field Details
-
dtProjectManager
-
workspaceOrchestrator
-
translatedProject
-
target
-
session
-
-
Constructor Details
-
AbstractBmSyncSession
-
-
Method Details
-
beginSyncOperation
public void beginSyncOperation()Description copied from interface:SyncSessionBegins synchronization operation. Performs all necessary lifecycle checks and resource blocking. Must preceed any business actions within the session. May be called only once per session- Specified by:
beginSyncOperationin interfaceSyncSession
-
endSyncOperation
public void endSyncOperation()Description copied from interface:SyncSessionEnds the operation. Must be called after internal synchronization logic is finished to remove LC/resource locks- Specified by:
endSyncOperationin interfaceSyncSession
-
beforeSynchronizing
public org.eclipse.core.runtime.IStatus beforeSynchronizing(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:SyncSessionBefore synchronizing projects, but after creating target project.- Specified by:
beforeSynchronizingin interfaceSyncSession- Parameters:
monitor- the monitor- Returns:
- the status
-
afterSynchronized
public org.eclipse.core.runtime.IStatus afterSynchronized(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:SyncSessionAfter synchronized the target project.- Specified by:
afterSynchronizedin interfaceSyncSession- Parameters:
monitor- the monitor- Returns:
- the status
-
getBatchSessionLock
Description copied from interface:BmSyncSessionGets the batch session lock handler, that allows to executeIBmTaskin batch session.- Specified by:
getBatchSessionLockin interfaceBmSyncSession- Returns:
- the batch session lock
-
getSkipped
Description copied from interface:SyncSessionGets the resources skipped duaring this sync session.- Specified by:
getSkippedin interfaceSyncSession- Returns:
- the skipped resources, cannot return
null.
-
storeDelayedFiles
public void storeDelayedFiles(org.eclipse.core.resources.IFile file, InputStream stream) throws IOException Description copied from interface:BmSyncSessionStore delayed files.- Specified by:
storeDelayedFilesin interfaceBmSyncSession- Parameters:
file- the filestream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
waitUntilStarted
protected boolean waitUntilStarted(org.eclipse.core.resources.IProject project, Duration waitDuration)
-