Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Cross platform:/plugin Resource Persistence(Wrong URI references while using platform:/plugin resources)
icon9.gif  EMF Cross platform:/plugin Resource Persistence [message #1691175] Thu, 02 April 2015 19:42 Go to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
Hi,

we have two resources. The resource A is contained in a plugin (platform:/plugin/...) and the resource B is stored in the workspace. B contains a reference to A. Using the default generated EMF Editor, the B serialization (xml file) uses the following schema:

href="../../plugin/../"
instead of
href="platform:/plugin/../"

The resourceSet contains both resources and URIs with A and B are ok.

What are we doing wrong?

Thanks for your support

Wink
Re: EMF Cross platform:/plugin Resource Persistence [message #1691176 is a reply to message #1691175] Thu, 02 April 2015 19:47 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

Try your scenario with a platform-scheme-aware URI handler in the save
options for your resources. e.g., something like:

Map<Object, Object> saveOptions = // ...
saveOptions.put(XMLResource.OPTION_URI_HANDLER,
new URIHandlerImpl.PlatformSchemeAware());

HTH,

Christian


On 2015-04-02 19:42:13 +0000, Regent LArcheveque said:

> Hi,
>
> we have two resources. The resource A is contained in a plugin
> (platform:/plugin/...) and the resource B is stored in the workspace.
> B contains a reference to A. Using the default generated EMF Editor,
> the B serialization (xml file) uses the following schema:
>
> href="../../plugin/../"
> instead of
> href="platform:/plugin/../"
>
> The resourceSet contains both resources and URIs with A and B are ok.
>
> What are we doing wrong?
>
> Thanks for your support
>
> ;)
Re: EMF Cross platform:/plugin Resource Persistence [message #1691178 is a reply to message #1691176] Thu, 02 April 2015 20:03 Go to previous message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 94
Registered: May 2010
Member
It works. Thank you very much.
Previous Topic:Databinding to map entry
Next Topic:read a xml file
Goto Forum:
  


Current Time: Tue Apr 16 21:08:34 GMT 2024

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

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

Back to the top