Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Finding an EObject by id following containment proxy
Finding an EObject by id following containment proxy [message #686854] Tue, 10 May 2011 09:30
Dan Pollitt is currently offline Dan PollittFriend
Messages: 55
Registered: August 2010
Member
Hi,

I recently made a change to our model to allow cross-document
containment references.

One impact of this is that we were using Resource#getObject(String
uriFragment) on the resource of the container to locate an object by
it's ID (a UUID) - this no longer works as the contained object that is
now in it's own resource is not present in the idToEObject map inside
that resource (understandable).

One option to allow us to find the object is to use its URI and issue a
getEObject(URI uri, boolean loadOnDemand) on the ResourceSet - but
thought I'd check, are there any other alternatives (aside from
iterating over contents) that perhaps just need the object ID?


Thanks,
Dan
Previous Topic:Re: EMF model editing /persistence in a "typical" RCP/IDE app
Next Topic:Finding an EObject by id following containment proxy
Goto Forum:
  


Current Time: Tue Apr 23 15:31:15 GMT 2024

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top