Skip to main content



      Home
Home » Modeling » EMF » Using custom xcore model in another
Using custom xcore model in another [message #1821010] Tue, 04 February 2020 09:08 Go to next message
Eclipse UserFriend
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 09:11] by Moderator

Re: Using custom xcore model in another [message #1821059 is a reply to message #1821010] Tue, 04 February 2020 22:56 Go to previous message
Eclipse UserFriend
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...
Previous Topic:Error in Genmodel Generation
Next Topic:Eclipse crashes when editing Ecore models
Goto Forum:
  


Current Time: Tue Jul 08 06:56:27 EDT 2025

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

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

Back to the top