public interface IWorkspaceEditingDomainMapping
Modifier and Type | Method and Description |
---|---|
void |
addGlobalOperationHistoryListener(org.eclipse.core.commands.operations.IOperationHistoryListener listener)
Registers a listener for all OperationHistories in the workspace.
|
void |
addGlobalResourceSetListener(org.eclipse.emf.transaction.ResourceSetListener listener)
Registers a listener for all model changes in the workspace.
|
void |
dispose()
Disposes of this
editing domain mapping and any resources that it has
allocated. |
org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.core.resources.IContainer container,
IMetaModelDescriptor mmDescriptor)
Returns the
editing domain corresponding to the meta-model descriptor in
parameter according to the given context container. |
org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.core.resources.IFile file)
Returns the
editing domain which corresponds to the given file . |
java.util.List<org.eclipse.emf.transaction.TransactionalEditingDomain> |
getEditingDomains()
Returns all EditingDomains in the Workspace.
|
java.util.List<org.eclipse.emf.transaction.TransactionalEditingDomain> |
getEditingDomains(org.eclipse.core.resources.IContainer container)
Returns the editing domains associated with the resources contained in the given container.
|
IResourceSaveIndicator |
getResourceSaveIndicator(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Returns an IResourceSaveIndicator for the provided EditingDomain.
|
void |
removeGlobalOperationHistoryListener(org.eclipse.core.commands.operations.IOperationHistoryListener listener)
Removes a registered IOperationHistoryListener which is listening to all OperationHistories in the workspace.
|
void |
removeGlobalResourceSetListener(org.eclipse.emf.transaction.ResourceSetListener listener)
Removes a ResourceSetListener listening to all model changes in the workspace.
|
org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.core.resources.IFile file)
editing domain
which corresponds to the given file
.file
- The file
whose editing domain
is to be returned.editing domain
for the specified file
, or
null
if the file
doesn't belong to any editing domain
.org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.core.resources.IContainer container, IMetaModelDescriptor mmDescriptor)
editing domain
corresponding to the meta-model descriptor in
parameter according to the given context container.container
- The container to use as context object.mmDescriptor
- The meta-model descriptor for which editing domain
must be
returned.editing domain
associated to the specified meta-model descriptor
according to the given context container.java.util.List<org.eclipse.emf.transaction.TransactionalEditingDomain> getEditingDomains(org.eclipse.core.resources.IContainer container)
container
and will determine the editing domain
s with which the resources can be handled.container
- The container containing the resources for which the
editing domains are to be returned.container
.java.util.List<org.eclipse.emf.transaction.TransactionalEditingDomain> getEditingDomains()
void addGlobalResourceSetListener(org.eclipse.emf.transaction.ResourceSetListener listener)
ResourceSetListener.resourceSetChanged(org.eclipse.emf.transaction.ResourceSetChangeEvent)
will be called every time a loaded
IResource in the workspace is changed.listener
- The listener to be notified of the model changes.void removeGlobalResourceSetListener(org.eclipse.emf.transaction.ResourceSetListener listener)
addGlobalResourceSetListener(ResourceSetListener)
the method will do nothing.listener
- The listener to be removed.void addGlobalOperationHistoryListener(org.eclipse.core.commands.operations.IOperationHistoryListener listener)
listener
- The listener to be notified of the events in the Workspace's OperationHistories.void removeGlobalOperationHistoryListener(org.eclipse.core.commands.operations.IOperationHistoryListener listener)
addGlobalOperationHistoryListener(IOperationHistoryListener)
this method will do nothing.listener
- The listener to be removed.IResourceSaveIndicator getResourceSaveIndicator(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
editingDomain
- The EditingDomain for which the IResourceSaveIndicator is to be returned.void dispose()
editing domain
mapping and any resources that it has
allocated. Editing domain mappings must be disposed when they are no longer in use, but only by the client that
created them (in case of sharing of editing domain mappings).
Note that editing domain
mappings registered on the extension point may
not be disposed.