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

and since if-statements have the same conditions the first statement
is always chosen. Where can we go from here? Is there an easy way to
change the if-statements so that the statements for transition 2 and 3
can be chosen when we need them to be? There must be something else
than the SuperType that differs between them...
Sure. One solution as I already tald you in this thread is to create _only_one_ link so there will be only one if() statement in generated ???VisualIdRegistry.
Another solution (except modifying this code by hands) is to create additional constraints in .gmfmap model to distinguish between these different types of the links. Like (domain specialization element below LinkMapping):


self.source.oclIsKindOf(A)

But I really suggest you creating one link with proper source/target end creation constraints.

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