[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,

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:
The following constraint should be helpful in your situation:

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

Was âoutgoingTransitionâ feature actually populated with outgoing transition instances in your model after transition link creation? You can check by: creating outgoing transition from InitialState, exploring InitialState properties to see if it gets reference to this transition in âoutgoingTransitionsâ.

Hint: you can set âoutgoingTransitionsâ feature as an âoppositeâ one for âsourceâ EReference in EMF and then the rest should be done for you by EMF-generated code.

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
Just in the properties of the diagram node referencing corresponding Figure. There should be a field âresize constraintâ with possibility to set it to ânoneâ.

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