public interface EditingContextAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addLockStatusChangedListener(IConsumer<java.util.Collection<LockStatusChangeEvent>> listener)
Adds a new lock status changed listener to the collection of lock status changed listeners to be notified when
model elements are locked or unlocked.
|
LockStatusChangeEvent.LockStatus |
geLockStatus(org.eclipse.emf.ecore.EObject obj)
Returns the current locking status of an element.
|
org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
Returns the editing domain.
|
void |
lock(java.util.Collection<org.eclipse.emf.ecore.EObject> elements)
Attempts to take an exclusive lock on the specified elements.
|
org.eclipse.core.runtime.IStatus |
performModelChange(java.lang.Runnable operation)
Executes an operation which which potentially makes changes to the model.
|
void |
registerModelChangeListener(IConsumer<java.util.List<org.eclipse.emf.common.notify.Notification>> listener)
Registers the sole unique model change listener listener to be notified when the model is modified.
|
void |
removeLockStatusChangedListener(IConsumer<java.util.Collection<LockStatusChangeEvent>> listener)
Removes the given lock status changed listener from the list of all lock status changed listeners..
|
void |
unlock(java.util.Collection<org.eclipse.emf.ecore.EObject> elements)
Attempts to release the locks on the specified elements.
|
void |
unregisterModelChangeListener()
Unregisters the currently set model change listener.
|
org.eclipse.core.runtime.IStatus performModelChange(java.lang.Runnable operation)
operation - the operation.void registerModelChangeListener(IConsumer<java.util.List<org.eclipse.emf.common.notify.Notification>> listener)
null.listener - the listener to invoke when the model is modified.void unregisterModelChangeListener()
org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
void addLockStatusChangedListener(IConsumer<java.util.Collection<LockStatusChangeEvent>> listener)
listener - the listener to invoke when elements are locked or unlocked.void removeLockStatusChangedListener(IConsumer<java.util.Collection<LockStatusChangeEvent>> listener)
listener - The listener to unregisterLockStatusChangeEvent.LockStatus geLockStatus(org.eclipse.emf.ecore.EObject obj)
obj - the element.void lock(java.util.Collection<org.eclipse.emf.ecore.EObject> elements)
LockStatusChangeEvent notification through the
#onLockStatusChanged(IConsumer) callback. There is no guarantee such a notification will be sent, if for
example an element was already locked by some other context.elements - the elements to lock.void unlock(java.util.Collection<org.eclipse.emf.ecore.EObject> elements)
LockStatusChangeEvent notification through the
#onLockStatusChanged(IConsumer) callback. There is no guarantee such a notification will be sent, if for
example this editing context did not have a lock on a given element.elements - the elements to unlock.