Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » problem converting uml file to ecore and genmodel file
problem converting uml file to ecore and genmodel file [message #902162] Thu, 16 August 2012 07:56 Go to next message
hugh hawks is currently offline hugh hawksFriend
Messages: 3
Registered: August 2012
Junior Member
I have constructed an uml model in Papyrus within which an UML profile has been used,therefore,two files were generated by Papyrus,one called "myUMLModel.uml",and the other is "service.profile.uml".
But when convert these two uml model to ecore and genmodel,I get the following error:
"Problems encountered in the model. A containment reference of a type with a container feature platform:/resource/test/model/uml.ecore#//ElementImport/importingNamespace that requires instances to be contained elsewhere cannot be populated".
Has anyone ever seen a problem like this or know how to fix it?
Re: problem converting uml file to ecore and genmodel file [message #902170 is a reply to message #902162] Thu, 16 August 2012 08:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26217
Registered: July 2009
Senior Member
Hugh,

Comments below.

On 16/08/2012 9:56 AM, hugh hawks wrote:
> I have constructed an uml model in Papyrus within which an UML
> profile has been used,therefore,two files were generated by
> Papyrus,one called "myUMLModel.uml",and the other is
> "service.profile.uml".
> But when convert these two uml model to ecore and genmodel,I get the
> following error:
> "Problems encountered in the model. A containment reference of a type
> with a container feature
> platform:/resource/test/model/uml.ecore#//ElementImport/importingNamespace
> that requires instances to be contained elsewhere cannot be populated".
> Has anyone ever seen a problem like this or know how to fix it?
This happens when you have an object that's contained in more than one
place, but the container features declare that they're required (not
optional, lower bound 1). So no matter where you contain the object, it
will be invalid, because the other container feature will be null. So
change the lower bounds for both container features to 0.

Note you can ignore this error too. The wizard still produces a
*.genmodel and when you open it, you can turn to the Generator tab and
still use the model.
Re: problem converting uml file to ecore and genmodel file [message #902181 is a reply to message #902170] Thu, 16 August 2012 09:19 Go to previous messageGo to next message
hugh hawks is currently offline hugh hawksFriend
Messages: 3
Registered: August 2012
Junior Member
thanks!
Re: problem converting uml file to ecore and genmodel file [message #902182 is a reply to message #902170] Thu, 16 August 2012 09:20 Go to previous message
hugh hawks is currently offline hugh hawksFriend
Messages: 3
Registered: August 2012
Junior Member
thanks!
Previous Topic:How to find all uses of an EDataType/eClassifier
Next Topic:[EMF-Databinding] Observe addition/removal changes in multi-value feature of a multi-value feature
Goto Forum:
  


Current Time: Mon Nov 24 15:13:37 GMT 2014

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

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