|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ID-based registry of shareable TransactionalEditingDomain
instances.
Although editing domains can be registered in code, the usual means is
to implement the org.eclipse.emf.transaction.editingDomains
extension point.
Field Summary | |
---|---|
static TransactionalEditingDomain.Registry |
INSTANCE
The single static registry instance. |
Method Summary | |
---|---|
void |
add(java.lang.String id,
TransactionalEditingDomain domain)
Registers an editing domain under the specified ID. |
TransactionalEditingDomain |
getEditingDomain(java.lang.String id)
Obtains the editing domain having the specified ID. |
TransactionalEditingDomain |
remove(java.lang.String id)
Removes the editing domain matching the specified ID from the registry. |
Field Detail |
public static final TransactionalEditingDomain.Registry INSTANCE
Method Detail |
public TransactionalEditingDomain getEditingDomain(java.lang.String id)
id
- the ID to request
null
if it is
not found and it could not be created from the extension pointpublic void add(java.lang.String id, TransactionalEditingDomain domain)
org.eclipse.emf.transaction.editingDomains
extension
point.
id
- the domain ID to registerdomain
- the domain to register. If its current
ID
is not the registered ID, then it
is updated to correspond
java.lang.IllegalArgumentException
- if the specified ID is already registered
statically on the extension pointpublic TransactionalEditingDomain remove(java.lang.String id)
org.eclipse.emf.transaction.editingDomains
extension
point.
id
- the domain ID to deregister
null
if none was registered
java.lang.IllegalArgumentException
- if the specified ID was registered
statically on the extension point
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |