Reloading Genmodel overrides URIs [message #1463436] |
Thu, 06 November 2014 10:01  |
Eclipse User |
|
|
|
Hi,
I am referencing third-party ecore files from my ecore file via platform plugin URIs. This works fine.
However, everytime I reload my genmodel it changes the URIs to resource URIs ("../.." instead of "platform:/plugin" in the text file).
This breaks everything, e.g., GMF cannot work with that ecore anymore. So I have to change all URIs back each time after I reloaded the genmodel.
This is really annoying. Does anybody else have this problem? Or is it a wrong configuration of my genmodel?
Thanks for your help!
|
|
|
Re: Reloading Genmodel overrides URIs [message #1464305 is a reply to message #1463436] |
Fri, 07 November 2014 07:00  |
Eclipse User |
|
|
|
Perhaps GMF is failing to keep up with the latest design changes. In
particular, perhaps they're not calling
resourceSet.getURIConverter().getURIMap().putAll(EcorePlugin.computePlatformURIMap(true));
but rather using the older deprecated call (with no arguments) which
passes (false) to the newer method. This was changed back in EMF 2.9
so is not a recent change...
On 06/11/2014 4:01 PM, Missing name Mising name wrote:
> Hi,
> I am referencing third-party ecore files from my ecore file via
> platform plugin URIs. This works fine.
> However, everytime I reload my genmodel it changes the URIs to
> resource URIs ("../.." instead of "platform:/plugin" in the text
> file). This breaks everything, e.g., GMF cannot work with that ecore
> anymore. So I have to change all URIs back each time after I reloaded
> the genmodel.
> This is really annoying. Does anybody else have this problem? Or is it
> a wrong configuration of my genmodel?
>
> Thanks for your help!
|
|
|
Powered by
FUDForum. Page generated in 0.26163 seconds