[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 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
----
But that was exactly what we said you had suggested earlier and when we tried that it didnŽt work. The other constraints worked just fine, but not this one. Do you have any other ideás?



-----
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.
-------
Unfortunately we couldn't test this because if we use the constraint above weÂŽre not able to draw any transition from any state. Something goes terribly wrong.




-----
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â??.
-------
Yes. We tried that. As we said in the previous post. It only makes the object non resizable when it is already drawn.
We would like to have a fixed size from the beginning, the person using the editor should NOT be able to choose how big the initalState is but it will be, say 15*15 pixels all the time. No bigger no smaller ever. Can this be done?




best regards
/Linda and Anna