[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Problems with the Mapping model

Hello Anna,

Also, we would like to set a constraint that says that we can only
draw one InitialState-node. We thought this would be solved
automatically since the ecore-diagram states that the Statechart
hasInitial 0..1, but apparently not...any ideas?
It should be.. Are you sure InitialState was added on creation into both âstatesâ containment feature and âhasInitialâ non-containment one on (according to the model diagram I sent you in last message)?

In order to do it you have to fill ChildReference for InitialState (in .gmfmap file) with both containmentFeature = states and childrenFeature = hasInitial.

-----------------
Alex Shatalin