[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Simple newbie question: Backreferences?

Michael,

Comments below.

Michael Lehmeier wrote:
On 2008-01-30, Ed Merks <merks@xxxxxxxxxx> wrote:
  
Michael,

Michael Lehmeier wrote:
    
Then I transformed it into an ecore file, fixed it, made a genmodel and
then an editor.
  
      
What was broken?
    

When I generate an ecore metamodel from a km3 file, the ecore model still
lacks a nsURI and a nsPrefix for all packages.
  
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...
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.
  
Again, if at least it generated instance class name like java.lang.String as a default, at least the model would be well formed...
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.
  
Perhaps you should open a bugzilla.  It sounds kind of incomplete. 
Besides 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.
  
I'm good at reading between the lines.  :-P
Thank you for your help.