From f994afe0b11275aeaea0185e58a2682eb384084c Mon Sep 17 00:00:00 2001 From: Jan Wittler Date: Fri, 25 Nov 2022 13:46:53 +0100 Subject: [PATCH] fix bug in EChangeResolverAndApplicator leading to some UUIDs not being registered --- .../change/atomic/resolve/EChangeResolverAndApplicator.xtend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/resolve/EChangeResolverAndApplicator.xtend b/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/resolve/EChangeResolverAndApplicator.xtend index 11ad750e..f7a5436b 100644 --- a/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/resolve/EChangeResolverAndApplicator.xtend +++ b/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/resolve/EChangeResolverAndApplicator.xtend @@ -42,6 +42,8 @@ class EChangeResolverAndApplicator { switch (eChange) { CreateEObject: uuidResolver.registerEObject(eChange.affectedEObjectID, eChange.affectedEObject) + } + switch (eChange) { EObjectAddedEChange: if (eChange.newValue !== null) { uuidResolver.registerEObject(eChange.newValueID, eChange.newValue) @@ -51,6 +53,8 @@ class EChangeResolverAndApplicator { switch (eChange) { DeleteEObject: uuidResolver.registerEObject(eChange.affectedEObjectID, eChange.affectedEObject) + } + switch (eChange) { EObjectSubtractedEChange: if (eChange.oldValue !== null) { uuidResolver.registerEObject(eChange.oldValueID, eChange.oldValue)