org.eclipse.emf.transaction
Interface TransactionalEditingDomain.Factory
-
All Known Implementing Classes:
-
TransactionalEditingDomainImpl.FactoryImpl
-
Enclosing interface:
-
TransactionalEditingDomain
-
public static interface TransactionalEditingDomain.Factory
Interface defining the protocol for creating transactional editing
domains. Non-shared editing domains can be created by accessing the
static factory
INSTANCE
. Shared editing domains (registered
on the org.eclipse.emf.transaction.editingDomains
extension point are obtained via the
TransactionalEditingDomain.Registry
.
INSTANCE
static final
TransactionalEditingDomain.Factory INSTANCE
- Static factory instance that can create instances of the default
transactional editing domain implementation.
createEditingDomain
TransactionalEditingDomain createEditingDomain()
- Creates an editing domain with a default resource set implementation.
-
-
Returns:
- the new editing domain
createEditingDomain
TransactionalEditingDomain createEditingDomain(
ResourceSet rset)
- Creates a new transactional editing domain on the specified resource
set. Although it is possible to create multiple editing domains on
the same resource set, this would rarely be useful.
-
-
Parameters:
-
rset
- the resource set
-
Returns:
- a new editing domain on the supplied resource set
getEditingDomain
TransactionalEditingDomain getEditingDomain(
ResourceSet rset)
- Obtains the transactional editing domain (if any) that is currently
managing the specified resource set.
-
-
Parameters:
-
rset
- a resource set
-
Returns:
- its editing domain, or
null
if it is not managed
by any TransactionalEditingDomain