Getting EObject from an URI [message #1830568] |
Wed, 29 July 2020 05:08  |
Eclipse User |
|
|
|
Hello Everyone,
I'm beginner in EMF frameworks and tools. I have an Editor which takes URIEditorInput, for displaying an EMF model data.
So, I convert an EObject to URI using the API EcoreUtil.getURI(EObject) and create an URIEditorInput and pass it for opening the editor.
Now, I'm need in need of accessing the EObject inside the Editor instance.
so, How can I convert the URI to an EObject? I analyzed a bit and found that there is a resource API to fetch the EObject (Resource.getEObject(String uriFragment)). But, I'm unable to find an API to fetch Resource from the URI.
can someone please advice a way to convert URI to it's corresponding EObject?
Thanks,
Pal
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03697 seconds