Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » force adding platform:/resource during saving resource
force adding platform:/resource during saving resource [message #1764953] Sun, 04 June 2017 22:00 Go to next message
Fy Za is currently offline Fy ZaFriend
Messages: 245
Registered: March 2010
Senior Member
My conforming models that contain cross reference are saved as

 href="othermodel.fileextension"/> 


I want to force to save it as

 href="platform:/resource/folder/othermodel.fileextension"/> 


How can I do it?
Re: force adding platform:/resource during saving resource [message #1764963 is a reply to message #1764953] Mon, 05 June 2017 07:34 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The href is determined by the Resource.uri of the target resource. Make sure it is what you want.

You may find that the various options of URI.deresolve() enable you to expand it to what you need.

Regards

Ed Willink
Re: force adding platform:/resource during saving resource [message #1764970 is a reply to message #1764963] Mon, 05 June 2017 09:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
I think you should not force that. Relative URIs are preferred for a good reason. I see, you've been posting on the TMF forum and that's why you're asking this question here. Simply load the resource containing such relative URIs with an absolute URI, rather than trying to force the absolute URIs into the serialization.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Where is the documentation for latest EMF release?
Next Topic:[CDO] Illegal attribute names when using Mysql database backend
Goto Forum:
  


Current Time: Fri Apr 26 02:59:01 GMT 2024

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

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

Back to the top