[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Initialize multivalued attributes/references
|
Hi,
when adding a multivalued attribute to an EClass, the generated code doesn't
initialize the attribute. Thus,
calling getMyAttributeList() might return null. The solution is to perform a
check or modify the generated code.
I'd prefer that the corresponding field is initlialized with an Empty List.
Is there an option in the genmodel? in the model itself?
Before I've always hacked the generated class, but I don't feel comfortable.
Maybe I should just modify the Factory methods?
Thanks. I promise to add replies to the FAQ.
Felix