| [news.eclipse.tools.emf] Re: Simple newbie question: Backreferences? |
|
Michael, Comments below. Michael Lehmeier wrote: That's a bummer. Even EMOF package are supposed to specify a namespace URI. It would seem better if tools always generate a well formed Ecore instance...On 2008-01-30, Ed Merks <merks@xxxxxxxxxx> wrote: Again, if at least it generated instance class name like java.lang.String as a default, at least the model would be well formed...Also, in the PrimitiveTypes package, you have to assign Instance Type Names for each primitive to avoid NullpointerExceptions when I generate an EMF model from it. Perhaps you should open a bugzilla. It sounds kind of incomplete.Apparently all of this has to be done manually every time you import a metamodel from km3. This was pretty nasty at the beginning since this problem isn't mentioned anywhere in tutorials. I'm good at reading between the lines. :-PBesides that, it seems that I have now solved my problem. I didn't use the library-book-writer tutorial but a family2persons ATL tutorial to get into it. That tutorial gave me a bit of a false impression about what the words container or contained meant. In retrospect, I guess I should have known. You didn't answer my question directly, but I paid more attention to that detail. Thank you for your help. |