Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem with validating a hutn file(Have taken model, generated hutn, manually extended hutn, tried to generate new model - problem)
Problem with validating a hutn file [message #1064530] Wed, 19 June 2013 17:37 Go to next message
Julian Johnson is currently offline Julian JohnsonFriend
Messages: 20
Registered: March 2013
Junior Member
I am getting a "Cannot build model because HUTN cannot be parsed", when I have manually extended a hutn file, I've generated from a .model. Sometimes the hutn editor shows red x'es, but with no explanation, sometimes it does not. I cannot see why my hand-extended hutn file is invalid.

Attached are:
the ecore metamodel (watches.ecore)
the emfatic equivalent (autogenerated from the .ecore)
the manually (exeed) created .model (watches3.model, valid against the metamodel)
the autogenerated hutn file (watches3.hutn)
the manually extended .htn file that demonstrates the error (watches31.hutn)

Any advice appreciated thanks.

Julian.
Re: Problem with validating a hutn file [message #1064563 is a reply to message #1064530] Wed, 19 June 2013 22:30 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 913
Registered: July 2009
Senior Member
Hi Julian,

As reported in the Problems view, this is caused by a duplicate object identifier (watchEntry2). Changing line 22 from:

}, watchEntry "watchEntry2" {

to:

}, watchEntry "watchEntry3" {

should make the error disappear.

Regards,
Dimitris

Re: Problem with validating a hutn file [message #1064610 is a reply to message #1064563] Thu, 20 June 2013 08:50 Go to previous message
Julian Johnson is currently offline Julian JohnsonFriend
Messages: 20
Registered: March 2013
Junior Member
Dimitris

thanks. I've explored more the Problems view, so I better understand how to make use of the information in it.

Thanks, JJ.
Previous Topic:EMF model - simple questions
Next Topic:Native vs. private constructor and static methods
Goto Forum:
  


Current Time: Thu Nov 27 21:01:35 GMT 2014

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

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