Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » separate spec generation from model
separate spec generation from model [message #761939] Wed, 07 December 2011 10:22 Go to next message
philippe chaunier is currently offline philippe chaunierFriend
Messages: 2
Registered: December 2011
Junior Member
Hi,

I'am working on xtext for canonical data model (sd-dsl on eclipse labs)

I want to separate an Xtext spec model generation to model.

1 model entity

Model

Entity


2 model spec gen reference the entity model

Spec

Root=[Entity]

When I change the model and save it, I want to read the spec generation to customize the generation.

its possible to associate a spec file whith same name and differente extention.

myentity.entity
myentity.spec

in generator retreive the spec model to generate whith spec

do you have solution to do that simply ?

thank a lot for yor wonderfull work.
Re: separate spec generation from model [message #762128 is a reply to message #761939] Wed, 07 December 2011 15:35 Go to previous messageGo to next message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
Either I don't understand the question or it is almost trivial to accomplish this in Xtext. I'm guessing that you need 2 Xtext DSLs: one for the .entity files and one for the .spec files. Implementing a generator for the spec gen DSL would take care of the generation. You would need some extra work if the 2 files matched on the basis of their name instead on some explicit import.

Re: separate spec generation from model [message #762557 is a reply to message #762128] Thu, 08 December 2011 09:51 Go to previous message
philippe chaunier is currently offline philippe chaunierFriend
Messages: 2
Registered: December 2011
Junior Member
Hi ,

The spec point on root entity representing the message root view.

the spec instances modification start the generation

The entity model change frequently
When I save model entity instances after modification I need to refresh or force the spec model generation for entities.

Sorry for my poor english

best regards



Previous Topic:Is Xtext good solution for my project?
Next Topic:What is the intention of invoking serialization when calling XtextResource.save()?
Goto Forum:
  


Current Time: Sat Jun 06 06:06:20 GMT 2020

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

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

Back to the top