public final class NotificationToOperationConverter extends Object
| Constructor and Description |
|---|
NotificationToOperationConverter(IdEObjectCollectionImpl project)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractOperation |
convert(NotificationInfo n)
Converts given notification to an operation.
|
static MultiReferenceOperation |
createMultiReferenceOperation(IdEObjectCollectionImpl collection,
org.eclipse.emf.ecore.EObject modelElement,
org.eclipse.emf.ecore.EReference reference,
List<org.eclipse.emf.ecore.EObject> referencedElements,
boolean isAdd,
int position)
Creates a multi reference operation based on the given information.
|
static SingleReferenceOperation |
createSingleReferenceOperation(IdEObjectCollectionImpl collection,
ModelElementId oldReference,
ModelElementId newReference,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EObject modelElement)
Creates a single reference operation based on the given information.
|
public NotificationToOperationConverter(IdEObjectCollectionImpl project)
project - projectpublic AbstractOperation convert(NotificationInfo n)
n - the notification to convertpublic static MultiReferenceOperation createMultiReferenceOperation(IdEObjectCollectionImpl collection, org.eclipse.emf.ecore.EObject modelElement, org.eclipse.emf.ecore.EReference reference, List<org.eclipse.emf.ecore.EObject> referencedElements, boolean isAdd, int position)
collection - the collection the modelElement is contained inmodelElement - the model element holding the referencereference - the actual referencereferencedElements - the elements referenced by the referenceisAdd - whether any referenced model elements were added to the collectionposition - the index of the model element within the referenceElements affected by
the generated operationpublic static SingleReferenceOperation createSingleReferenceOperation(IdEObjectCollectionImpl collection, ModelElementId oldReference, ModelElementId newReference, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EObject modelElement)
collection - the collection the modelElement is contained inoldReference - the ModelElementId of the model element the reference was pointing tonewReference - the ModelElementId of the model element the reference is now pointing toreference - the actual referencemodelElement - the model element holding the referenceCopyright © 2017. All rights reserved.