Skip to main content



      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 15:42 Go to next message
Eclipse UserFriend
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 15:47 Go to previous messageGo to next message
Eclipse UserFriend
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 16:03 Go to previous message
Eclipse UserFriend
It works. Thank you very much.
Previous Topic:Databinding to map entry
Next Topic:read a xml file
Goto Forum:
  


Current Time: Wed Jul 23 06:34:22 EDT 2025

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

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

Back to the top