Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Reloading Genmodel overrides URIs
Reloading Genmodel overrides URIs [message #1463436] Thu, 06 November 2014 15:01 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 16
Registered: March 2010
Junior Member
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 12:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30691
Registered: July 2009
Senior Member
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!
Previous Topic:[CDO] Stop/Close a running CDO server does not work
Next Topic:EMF Edit ItemProvider getText method always returns a default string?
Goto Forum:
  


Current Time: Wed Dec 11 20:35:39 GMT 2019

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

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

Back to the top