Re: Re: [mdr-users] Building MDR from CVS not possible

Brian Smith <[email protected]> Tue, 08 Oct 2002 20:27:08 -0500
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Martin,

Okay. You are right that the changes I made to GenericMapper didn't 
exactly fit perfectly with this particular implementation. I actually 
already fixed JMIImplGenerator to work with the new GenericMapper, by 
making the GenericMapper openStream more general to take (ModelElement 
me, String suffix) parameters. I made the JMIImplGenerator's openStream 
obtain the proper reference to the ClassElement, and the ClassElement in 
effect becomes the "stream." Actually, the only reason I didn't add it 
back in to CVS was because of the following problem:

If the file doesn't exist, and it needs to be created anew, then the 
code that gets generated between the PrintWriter pw = new 
PrintWriter(...)....pw.close() gets generated correctly. However, the 
methods that get generated using the org.openide.src API do not get 
added until the newly-created document is saved by the user. I was 
hoping to fix that problem before I added it back in.

I hadn't checked yet whether this particular problem also existed with 
the original version that you created. Anyway, at least I can send you 
the new version privately if you would still like to use it, regardless 
of its designated "officialness."  Please let me know.

- Brian