Skip to main content



      Home
Home » Modeling » EMF » How to get an Object from it's uri path
How to get an Object from it's uri path [message #1863680] Tue, 20 February 2024 23:21 Go to next message
Eclipse UserFriend
I have an object. And I got it's uri path by using
"EcorUtil.getURI(this)".
Now, I want to modify the path to get the parent of this object or super parent of this object because they all are in the path and i can modify the path as it is in string format.
But i don't know that if there is any method by which we can get object by providing the uri to the desired object.
Help me if you can.
Thanks in advance.
Re: How to get an Object from it's uri path [message #1863684 is a reply to message #1863680] Wed, 21 February 2024 03:37 Go to previous message
Eclipse UserFriend
You can use org.eclipse.emf.ecore.resource.ResourceSet.getEObject(URI, boolean) for this purpose.
Previous Topic:Multiple editors
Next Topic:What happens when an object is deleted?
Goto Forum:
  


Current Time: Mon Jul 07 16:04:20 EDT 2025

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

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

Back to the top