|Re: How does eclipse resolve model URI's? [message #655633 is a reply to message #654823]
||Tue, 22 February 2011 03:23
| Ed Merks
Registered: July 2009
Wilbert Alberts wrote:
> I'm having problems understanding how eclipse resolves model uri's.
> Case: I have created an ecore model in project A. Then I create a
> dynamic instance of an entity and store the resulting (instance) model
> in a folder of project B. I can edit it using the sample reflective
> editor. However, if I close eclipse and restart it, any attempt to
> open the instance model using the samlple reflective editor results in
> error messages stating:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://asml_platform.fc25.asml.com/0.1.0' not found.
> However, when I use the metamodel explorer, it shows that the
> metamodel (with the proper uri) is known in the workspace.
I'm not sure which project provides a metamodel explorer.
> The instance model, stored as an xmi file, contains a schema location
> attribute referring to the meta model (using its uri).
I would have expected it to use the physical location, i.e., a
platform:/resource URI. That's what the EMF Core framework would do.
Maybe you're using a wizard provided by some other project, in which
case it's best to ask on that project's specific newsgroup...
> Any hints,
Powered by FUDForum
. Page generated in 0.01752 seconds