public class TransactionHelper
extends java.lang.Object
| Constructor and Description |
|---|
TransactionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eobjects)
Gets the transactional editing domain from the given collection of eobjects.
|
static org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.emf.ecore.EObject eobject)
Gets the transactional editing domain from the given object.
|
static org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(java.util.List<org.eclipse.emf.ecore.resource.Resource> resources)
Gets the transactional editing domain from the given collection of resources.
|
static org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.emf.ecore.resource.Resource resource)
Gets the transactional editing domain from the given resource.
|
static org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.sirius.business.api.session.Session session)
Gets the transactional editing domain from the given sirius session.
|
static ExecutionManager |
getExecutionManager(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eobjects)
Gets the execution manager from the given collection of eobjects.
|
static ExecutionManager |
getExecutionManager(org.eclipse.emf.ecore.EObject eobject)
Gets the execution manager from the given object.
|
static ExecutionManager |
getExecutionManager(org.eclipse.emf.ecore.resource.Resource resource)
Gets the execution manager domain from the given resource.
|
static ExecutionManager |
getExecutionManager(org.eclipse.sirius.business.api.session.Session session)
Gets the execution manager from the given sirius session.
|
public static org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.emf.ecore.EObject eobject)
eobject - the object from which the editing domain will be retrievedpublic static org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.sirius.business.api.session.Session session)
session - the sirius session from which the editing domain will be retrievedpublic static org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.emf.ecore.resource.Resource resource)
resource - the resource from which the editing domain will be retrievedpublic static org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eobjects)
eobjects - a collection of eobjects from which the editing domain will be retrievedpublic static org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(java.util.List<org.eclipse.emf.ecore.resource.Resource> resources)
resources - a collection of resources from which the editing domain will be retrievedpublic static ExecutionManager getExecutionManager(org.eclipse.emf.ecore.EObject eobject)
eobject - the object from which the execution manager will be retrievedpublic static ExecutionManager getExecutionManager(org.eclipse.emf.ecore.resource.Resource resource)
resource - the resource from which the execution manager will be retrievedpublic static ExecutionManager getExecutionManager(org.eclipse.sirius.business.api.session.Session session)
session - the sirius session from which the execution manager will be retrievedpublic static ExecutionManager getExecutionManager(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eobjects)
eobjects - a collection of eobjects from which the execution manager will be retrieved