From fd7e73def584030377d8d2bbd6d48d67ba8c3f6c Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Thu, 10 Aug 2023 13:28:14 +0200 Subject: [PATCH] Avoid the usage of xmi ids and instead use fragment ids --- .../src/tools/vitruv/change/atomic/uuid/UuidResolverImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/uuid/UuidResolverImpl.java b/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/uuid/UuidResolverImpl.java index 7b95c315..5f142ae6 100644 --- a/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/uuid/UuidResolverImpl.java +++ b/bundles/tools.vitruv.change.atomic/src/tools/vitruv/change/atomic/uuid/UuidResolverImpl.java @@ -177,7 +177,7 @@ private Uuid getUuidOrNull(EObject eObject) { } private Uuid getUuidForReadOnlyEObject(EObject eObject) { - return new Uuid(EcoreUtil.getURI(eObject).toString()); + return new Uuid(URI.createURI(eObject.eResource().getURI() + "#//" + EcoreUtil.getRelativeURIFragmentPath(eObject.eContainer(), eObject)).toString()); } private EObject getEObjectOrNull(Uuid uuid) {