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
Faiez Zalila is currently offline Faiez ZalilaFriend
Messages: 235
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: 5586
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: 29135
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.
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: Wed Jan 24 08:02:50 GMT 2018

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

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