Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cross-Resource Reference URI format
Cross-Resource Reference URI format [message #840317] Tue, 10 April 2012 00:06 Go to next message
Hemant Kolwalkar is currently offline Hemant KolwalkarFriend
Messages: 17
Registered: July 2009
Junior Member
Is there any mechanism EMF allows additional information to be appended to a cross-resource reference URI format? e.g. href="Project1/Model4#_HvLDcYKgEeGRYM-WMSgF7A?Foo?" where Foo is the name of the object to which the fragment references.

If there is, and if Foo is renamed, does EMF automatically keep the reference URI in sync?

thanks,

- Hemant
Re: Cross-Resource Reference URI format [message #840463 is a reply to message #840317] Tue, 10 April 2012 05:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Hemant,

Comments below.

On 10/04/2012 2:06 AM, Hemant Kolwalkar wrote:
> Is there any mechanism EMF allows additional information to be
> appended to a cross-resource reference URI format?
Yes.
> e.g. href="Project1/Model4#_HvLDcYKgEeGRYM-WMSgF7A?Foo?"
If you look in ResourceImpl.getEObject you can see it strips the
trailing ?...? off. You could specialize
XMLHelperImpl.getURIFragmentQuery to add one during save.
> where Foo is the name of the object to which the fragment references.
>
> If there is, and if Foo is renamed, does EMF automatically keep the
> reference URI in sync?
If you specialize getURIFragmentQuery, during save, the serialization
will use whatever you return, so if that's the new name, that's what's
saved. UML2 makes use of this, so you could look at their source code
to see how.
>
> thanks,
>
> - Hemant


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF ecore from interfaces & impl
Next Topic:Treeviewer only refreshes when clicked on
Goto Forum:
  


Current Time: Sat Apr 20 03:45:59 GMT 2024

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

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

Back to the top