Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Using custom xcore model in another
Using custom xcore model in another [message #1821010] Tue, 04 February 2020 14:08 Go to next message
Dimg Cim is currently offline Dimg CimFriend
Messages: 56
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31864
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/
Previous Topic:Error in Genmodel Generation
Next Topic:Eclipse crashes when editing Ecore models
Goto Forum:
  


Current Time: Tue May 11 23:48:25 GMT 2021

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

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

Back to the top