|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.model.changeTracking.NotificationToOperationConverter
public final class NotificationToOperationConverter
Converts an EMF notification to an Operation.
| Constructor Summary | |
|---|---|
NotificationToOperationConverter(IdEObjectCollectionImpl project)
Default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationToOperationConverter(IdEObjectCollectionImpl project)
project - project| Method Detail |
|---|
public AbstractOperation convert(NotificationInfo n)
n - the notification to convert
public 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 operation
public 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 reference
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||