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) {