Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Wed, 21 February 2024 04:21 Go to next message
Sachin Goyal is currently offline Sachin GoyalFriend
Messages: 19
Registered: February 2024
Junior Member
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 08:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
You can use org.eclipse.emf.ecore.resource.ResourceSet.getEObject(URI, boolean) for this purpose.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Multiple editors
Next Topic:What happens when an object is deleted?
Goto Forum:
  


Current Time: Thu May 02 11:00:07 GMT 2024

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

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

Back to the top