|
Re: Cross-Resource Reference URI format [message #840463 is a reply to message #840317] |
Tue, 10 April 2012 05:43 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02898 seconds