public class BatchSynchronizationManager
extends java.lang.Object
Constructor and Description |
---|
BatchSynchronizationManager(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Constructs a BatchSynchronizationManager for the specified editingDomain.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.runtime.IStatus |
execute()
Executes all the queued request runnables within an EMF transactional
command.
|
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Returns the editing domain in which the synchronization requests are to
be run.
|
protected void |
notifySynchronizationRequestAdded(java.lang.Runnable newRequest)
This method is called when a synchronization request Runnable is queued
using the queueSynchronizationRequest() method.
|
void |
queueSynchronizationRequest(java.lang.Runnable synchronizeRequest)
Queue the given synchronizationRequest Runnable and calls the
notifySynchronizationRequestAdded() method.
|
protected static void |
trace(java.lang.String s) |
public BatchSynchronizationManager(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
editingDomain
- TransactionalEditingDomain to construct the
BatchSynchronizationManager for.public final void queueSynchronizationRequest(java.lang.Runnable synchronizeRequest)
synchronizeRequest
- Runnable to queueprotected void notifySynchronizationRequestAdded(java.lang.Runnable newRequest)
newRequest
- protected org.eclipse.core.runtime.IStatus execute()
protected static void trace(java.lang.String s)
protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()