| [news.eclipse.modeling.gmf] Re: Problems with the Mapping model |
Hello again!
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 outgoingtransition
instances in your model after transition link creation? You can check by: creating outgoing transition from InitialState, exploring InitialStateproperties
to see if it gets reference to this transition in â??outgoingTransitionsâ??. Hint: you can set â??outgoingTransitionsâ?? feature as an â??oppositeâ?? onefor
â??sourceâ?? EReference in EMF and then the rest should be done for you byEMF-generated
code.-------
toJust in the properties of the diagram node referencing corresponding Figure. There should be a field â??resize constraintâ?? with possibility to set itAnd 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
â??noneâ??.-------
best regards /Linda and Anna