Skip to content

Commit

Permalink
Avoid the usage of xmi ids and instead use fragment ids
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWerm committed Aug 10, 2023
1 parent 62ac20f commit fd7e73d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fd7e73d

Please # to comment.