Using custom xcore model in another [message #1821010] |
Tue, 04 February 2020 14:08 |
Dimg Cim Messages: 59 Registered: December 2015 |
Member |
|
|
Hello all,
I have the issue to run the EMF generated editor, when I used an already defined xcore in a new xcore model. I cannot create a model instance in the editor. I am not able to create a new model via the EMF Model Wizard. The following error message is popup after I clicked on finish
java.io.FileNotFoundException: Test.model(The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
The first xcore model
package test.model
class ModelContainer{
contains Bean[0..*] beans
}
class Bean{
String name
}
The second xcore model
package test.ui
class Project{
refers Bean[0..*] beans
}
What is wrong on this place?
Best regards
Dimg
[Updated on: Tue, 04 February 2020 14:11] Report message to a moderator
|
|
|
Re: Using custom xcore model in another [message #1821059 is a reply to message #1821010] |
Wed, 05 February 2020 03:56 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Perhaps there was an earlier exception? This one looks pretty basic, i.e., Test.model not found. It's not even an absolute path, so how is it actually being loaded? The wizard itself only loads using an absolute URI... The debugger will no doubt help you track the problem down faster than asking here, but if you ask here, include the full stack trace and make sure it's the first one that's logged, i.e., if the file failed to save, then yes, later it will fail to load...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03898 seconds