[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: How to assign attributes inside rules?

is there anywhere a example with a value converter used
in that way?

Michal

you may try to use a value converter to assign something to your int attribute. For example you may configure data type rules:

FooIntAttr1 returns ecore::EInt: 'x';
FooIntAttr2 returns ecore::EInt: 'y';

and use

Foo: alternative=FooIntAttr1 Alternative1 | alternative=FooIntAttr2 Alternative2;

That should do the trick.