Skip to main content


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 Azizi is currently offline Banafsheh AziziFriend
Messages: 328
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 268 times)
  • Attachment: errors.rtf
    (Size: 12.89KB, Downloaded 175 times)


Member of MDSE Research Group
http://mdse.ui.ac.ir
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: 33140
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
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 Azizi is currently offline Banafsheh AziziFriend
Messages: 328
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


Member of MDSE Research Group
http://mdse.ui.ac.ir
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: 33140
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF Forms
Next Topic:[EMF Forms] Text field active for unsettable features
Goto Forum:
  


Current Time: Tue Apr 23 17:05:15 GMT 2024

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

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

Back to the top