public class EditingDomainFactoryListenerRegistry
extends java.lang.Object
This registry mainly provides one method allowing to retrieve listeners corresponding to one specified meta-model descriptor.
Modifier and Type | Field and Description |
---|---|
static EditingDomainFactoryListenerRegistry |
INSTANCE
The singleton instance of this registry.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IMetaModelDescriptor mmDescriptor,
java.lang.String listenerId,
ITransactionalEditingDomainFactoryListener listener,
java.lang.String overriddenListenerId)
Adds the specified factory listener to the map of
registered listeners that have been contributed to the platform through
org.eclipse.sphinx.emf.editingDomainFactoryListeners extension point.
|
void |
addListener(java.lang.String mmDescIdPattern,
java.lang.String listenerId,
ITransactionalEditingDomainFactoryListener listener,
java.lang.String overriddenListenerId)
Adds the specified factory listener to the map of
registered listeners that have been contributed to the platform through
org.eclipse.sphinx.emf.editingDomainFactoryListeners extension point.
|
java.util.Collection<ITransactionalEditingDomainFactoryListener> |
getListeners(IMetaModelDescriptor mmDescriptor) |
void |
removeListener(ITransactionalEditingDomainFactoryListener listener)
Removes the specified factory listener from that
registry.
|
public static final EditingDomainFactoryListenerRegistry INSTANCE
public java.util.Collection<ITransactionalEditingDomainFactoryListener> getListeners(IMetaModelDescriptor mmDescriptor)
mmDescriptor
- The meta-model descriptor for which matching
editing domain factory listeners must be
returned.public void addListener(java.lang.String mmDescIdPattern, java.lang.String listenerId, ITransactionalEditingDomainFactoryListener listener, java.lang.String overriddenListenerId)
mmDescIdPattern
- The meta-model descriptor identifier pattern allowing to retrieve
the meta-model descriptors the specified factory listener must be associated to. Should not be null
.listenerId
- The identifier of the transactional editing
domain factory listener to be registered. If null
the
transactional editing domain factory listener
's identifier will be automatically computed based the result of
toString().listener
- The transactional editing domain factory
listener that must be registered on the factory
listener registry for the meta-model descriptors that match the
specified mmDescIdPattern
. Should not be null
.overriddenListenerId
- The identifier of some other transactional
editing domain factory listener to be overridden or null
when no overriding is required.public void addListener(IMetaModelDescriptor mmDescriptor, java.lang.String listenerId, ITransactionalEditingDomainFactoryListener listener, java.lang.String overriddenListenerId)
mmDescriptor
- The meta-model descriptor the specified
factory listener must be associated to. Should
not be null
.listenerId
- The identifier of the transactional editing
domain factory listener to be registered. If null
the
transactional editing domain factory listener
's identifier will be automatically computed based the result of
toString().listener
- The transactional editing domain factory
listener that must be registered on the factory
listener registry for the meta-model descriptors that match the
specified mmDescIdPattern
. Should not be null
.overriddenListenerId
- The identifier of some other transactional
editing domain factory listener to be overridden or null
when no overriding is required.public void removeListener(ITransactionalEditingDomainFactoryListener listener)
listener
- The factory listener to remove from the list
of registered ones.