Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » can not open the model
can not open the model [message #1768525] Wed, 19 July 2017 17:08 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
Hi,

I use a model finder. It generates the model attached. When I open it I have an error. I also attached the error file.
  • Attachment: m0.model
    (Size: 0.23KB, Downloaded 16 times)
  • Attachment: errors.rtf
    (Size: 12.89KB, Downloaded 18 times)
Re: can not open the model [message #1768538 is a reply to message #1768525] Wed, 19 July 2017 18:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 28963
Registered: July 2009
Senior Member
I don't know what a "model finder" is. I also note that his post lacks a question, so you shouldn't be surprised when there is no answer.
Re: can not open the model [message #1768542 is a reply to message #1768538] Wed, 19 July 2017 19:35 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
I use a tool [1] and it generates this model. My question is how can I resolve the error to be able to open the model e.g., with Sample Reflective Ecore model Editor or etc.

[1] https://github.com/jesusc/anatlyzer
Re: can not open the model [message #1768573 is a reply to message #1768542] Thu, 20 July 2017 07:19 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 28963
Registered: July 2009
Senior Member
In order to load this instance model, the EPackage that describes its structure must be found. The only information in the resource for that EPackage is xmlns:families1="families/1". That's not enough information to locate the EPackage (unless the EPackage has that as its nsURI and the package is generated and available in the runtime where you're doing the loading, but if that's the case, you should use a better nsURI). If the serialization included the schema location as described in https://wiki.eclipse.org/EMF/FAQ#How_can_I_ensure_that_an_xsi:schemaLocation_is_serialized_for_my_packages.3F then the EPackage could be located dynamically. I'd suggest loading the *.ecore model itself, right clicking on Family EClass, and use Create Dynamic Instance... Then you'll see an instance model that includes the schema location. That's what your instance needs to look like.
Previous Topic:EMF Forms
Next Topic:[EMF Forms] Text field active for unsettable features
Goto Forum:
  


Current Time: Sat Nov 18 19:53:42 GMT 2017

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

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