Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » error when generate .genmodel
error when generate .genmodel [message #817701] Sat, 10 March 2012 08:51 Go to next message
Eclipse UserFriend
hi evrybody;
I created this Metamodel of statechart diagram(image MM_StateChart.png) but when i want to generate .genmodel this This error message is appeared:
1/a containment reference of a type with a container feature org.eclipse.emf.ecore.EreferenceImpl{platforme:/resource/project/model/state/state.ecore#/state/composite} that requires instance to be contained elsewhere cannot be populated,
2/a containment reference of a type with a container feature org.eclipse.emf.ecore.EreferenceImpl{platforme:/resource/project/model/state/state.ecore#/state/ContentIn} that requires instance to be contained elsewhere cannot be populated,(message of error in errormessage.png)

please please help me it is sosososo important. what is the solution despite the metamodel is just
thnks at advance
Re: error when generate .genmodel [message #817744 is a reply to message #817701] Sat, 10 March 2012 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Lamia,

Your model requires that a State be contained by a StateMachine, but you
have a derived CompositeState that requires a State to be contained by a
CompositeState. Of course any given State instance can be contained
either by a StateMachine or a CompositeState, but not both. So no
instance of the model you've defined will ever have a State where both
getContentIn() != null && getComposite() != null is true. You should
change the lower bound of both your container references (ContentIn and
composite) to be 0.


On 10/03/2012 2:51 PM, Lamia Mati wrote:
> hi evrybody;
> I created this Metamodel of statechart diagram(image MM_StateChart.png) but when i want to generate .genmodel this This error message is appeared:
> 1/a containment reference of a type with a container feature org.eclipse.emf.ecore.EreferenceImpl{platforme:/resource/project/model/state/state.ecore#/state/composite} that requires instance to be contained elsewhere cannot be populated,
> 2/a containment reference of a type with a container feature org.eclipse.emf.ecore.EreferenceImpl{platforme:/resource/project/model/state/state.ecore#/state/ContentIn} that requires instance to be contained elsewhere cannot be populated,(message of error in errormessage.png)
>
> please please help me it is sosososo important. what is the solution despite the metamodel is just
> thnks at advance
Re: error when generate .genmodel [message #817779 is a reply to message #817744] Sat, 10 March 2012 11:42 Go to previous message
Eclipse UserFriend
hi Ed Merks,
thanks aloooooooot that is the true answer.
I want to ask you to validate my final metamodel of StateChart diagram please.
Previous Topic:runtime extension of a GMF editor with additional elements
Next Topic:Recursively inserting same figure inside a figure.
Goto Forum:
  


Current Time: Sun Nov 09 06:19:24 EST 2025

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

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

Back to the top