Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Submodules: X-Resource URIs
Submodules: X-Resource URIs [message #1752536] Tue, 24 January 2017 22:46 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Dear all,

when using submodules, it seems that the URIs of references to elements in other resources seem to include the resource name:

<packagedElement xmi:type="uml:Usage" xmi:id="_H-r4EOKBEeadSdf3Zj6cDQ">
<client xmi:type="uml:Actor" href="UCX.uml#_Gcsg4OKBEeadSdf3Zj6cDQ"/>
<supplier xmi:type="uml:UseCase" href="UCX.uml#_GVdNQOJ9EeadSdf3Zj6cDQ"/>
</packagedElement>

Is the resource name before the fragment actually used for reference / proxy resolution? It would seem that this would introduce a lot of dependencies between the files: Renaming a resource that is being referred would imply changes in all the referring resources. Or is the file name only informational?

Regards,

Andreas
Re: Submodules: X-Resource URIs [message #1752619 is a reply to message #1752536] Wed, 25 January 2017 15:41 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Andreas,

That's the EMF standard for serialization of XMI cross-document references. The href attribute is the URI (with fragment) of the referenced object. The URI is relative to the referencing resource, so in this case it needs only the resource file name because the referenced file is in the same folder as the referencing file.

And, yes, this does imply a need to refactor referencing resources when an object moves from one resource to another. IIRC, Papyrus implements refactorings, but I'm not sure of the details.

HTH,

Christian
Previous Topic:Diagram owner/root element
Next Topic:diagram empty
Goto Forum:
  


Current Time: Sat Apr 20 13:39:37 GMT 2024

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

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

Back to the top