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

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.

No, of course we had forgotten about that one...sorry about that. Did you have an answer for our other question? We still only want one outgoing link from our InitialState. In an earlier post, you suggested that we should use a constraint like:


if self.oclIsKindOf(A) then self.outgoingTransition->size() = 0 else not self.oclIsKindOf(C) endif

But when we try to do this (but adding our Final and Initial States instead of A and C), we can't draw any transitions at all...the other constraints we tried worked just fine, what could we be doing wrong with this one?

And at last, a question from another thread..you gave a tip about setting a fixed size for nodes in .gmfgraph with Node.setResizeConstraint(Direction.NONE)
Where in the gmfgraph can we do this? We have tried a few different options, but none of them worked like we wanted them to. If we mark the node it is possible to set a variable named Resize Constraint to NONE, but the only thing that does is preventing us from changing the size of the node once it's drawn...and we want it to have a fixed, unchangeable size from the beginning.