|Re: [Xcore] Extending the generator [message #1690752 is a reply to message #1690742]
||Tue, 31 March 2015 03:40
| Ed Merks
Registered: July 2009
Yes, I would have expected that to work too, but it didn't. I've opened
https://bugs.eclipse.org/bugs/show_bug.cgi?id=463536 and committed the
fix. Note that if your extension is for generating additional Java
files in the model folder, you consider extending
with specialized adapters that delegate createInputStream,
createOutputStream, and shouldMerge the way you see them in that class.
On 31/03/2015 1:55 AM, Erick Hagstrom wrote:
> I'm trying to create an extension to the Xcore code generator. I
> naively expected that I could just do what is done in
> org.eclipse.emf.examples.generator.validator, but I eventually noticed
> that the validation code isn't generated for Xcore models, only for
> Ecore. So I'm confused.
> It was my understanding that Xcore just reused all the EMF code
> generation machinery as-is, yet neither the validation example nor my
> generator extension seem to work for Xcore. Is my expectation wrong?
> Or is there something else going on? Is this supposed to work?
Powered by FUDForum
. Page generated in 0.03515 seconds