Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » HUTN load multiple metamodels(Loading two or more metamodels in @spec?)
HUTN load multiple metamodels [message #722464] Mon, 05 September 2011 20:49 Go to next message
Darren  is currently offline Darren
Messages: 40
Registered: September 2009
Member
I'm either approaching this in the wrong way or am missing something simple, but I don't seem to be able to load two meta-models in the @spec in the way shown in forum post.

What I am trying to do can be summed up as

MetaModel 1 {
abstract Class 1 {val[*] 1 children}
Class 1a extends 1
Class 1b extends 1
...
}

MetaModel 2 {
Class 2a extends 1a
Class 2b extends 1b
Class 2c extends 1a
...
}
Works fine

Then in HUTN I want to create a model that can have both meta model 2 & 1 children i.e.

Root{
1a children: 1a,2b,2c,2b,1b
}

I've tried:
@Spec {
metamodel "One" {
nsUri: "App.Models.One"
}
metamodel "Two" {
nsUri: "App.Models.Two"
}
}

Root{
1a
{...

But get an error symbol at metamodel "Two" with no error message.

Anyone have any ideas?
Re: HUTN load multiple metamodels [message #722465 is a reply to message #722464] Mon, 05 September 2011 20:57 Go to previous message
Darren  is currently offline Darren
Messages: 40
Registered: September 2009
Member
You can ignore/remove this. Long day Wink I had a typo in the namespace of the second metamodel which was the problem just needed to open my eyes and finally spot it.

Darren
Previous Topic:Method 'getContainmentReferences' not found (190:38)
Next Topic:how to read contents from .genmodel(ecore) using EGL
Goto Forum:
  


Current Time: Mon Sep 22 22:23:28 GMT 2014

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

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