Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Regenerating Ecore from XSD
Regenerating Ecore from XSD [message #1075310] Mon, 29 July 2013 08:05 Go to next message
Heribert  Schütz is currently offline Heribert SchützFriend
Messages: 24
Registered: July 2009
Junior Member
Hi,

I have converted an XML schema to Ecore using the EMF-Project wizard. Now I am occasionally modifying the schema (essentially adding ecore:... attributes to tweak
the EMF representation).

Is it possible to re-generate the Ecore model without setting up a new project? Furthermore, is it possible to do this programmatically (e.g. from the command line or in maven)?

Thanks for any help.

Regards,
Heribert.
Re: Regenerating Ecore from XSD [message #1075328 is a reply to message #1075310] Mon, 29 July 2013 08:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Heribert,

Comments below.

On 29/07/2013 10:05 AM, Heribert Schütz wrote:
> Hi,
>
> I have converted an XML schema to Ecore using the EMF-Project wizard.
> Now I am occasionally modifying the schema (essentially adding
> ecore:... attributes to tweak the EMF representation).
>
> Is it possible to re-generate the Ecore model without setting up a new
> project?
The Reload... action in the Generator menu or on the context menu of a
*.genmodel resource will do that.
> Furthermore, is it possible to do this programmatically (e.g. from the
> command line or in maven)?
There's an Ant task org.eclipse.xsd.ecore.importer.taskdefs.XSDGeneratorTask
>
> Thanks for any help.
>
> Regards,
> Heribert.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Regenerating Ecore from XSD [message #1075541 is a reply to message #1075328] Mon, 29 July 2013 15:57 Go to previous message
Heribert  Schütz is currently offline Heribert SchützFriend
Messages: 24
Registered: July 2009
Junior Member
Thanks a lot! Reload... does exactly what I need. (Didn't get around yet to use the Ant task.)

Heribert.
Previous Topic:Permissions on EMF model classes
Next Topic:Combining EMF Commands and Text Editor operations
Goto Forum:
  


Current Time: Tue Apr 23 10:14:31 GMT 2024

Powered by FUDForum. Page generated in 0.02884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top