Hi folks,

I would like to extend the sculptor.dsl with aspects like historizable and
standing data. Standing data is similar to enum, lists for eg. salutation,
but users can change them at runtime. So these standing data must be
entities in the database.

Now I would add the word StandingData to the xtext editor. Therefore I've
generated a new xtext project called felixdsl with the following
felixdsl.xtxt:

----
importGrammar
"platform:/resource/org.fornax.cartridges.sculptor.dsl/src/sculptordsl.xtxt"

FelixModel :
  model=DslModel;
  
 DslSimpleDomainObject :
  DslBasicType | DslEnum | DslDomainObject | DslStandingData;

DslStandingData : 
  (doc=STRING)?
  "StandingData" name=ID ";";
  // tbc
----

Editor generation works great and I get the literal standing data in my
modeleditor.

Next step is, to parse the model and transform it to the sculptormetamodel.
Therefore I've the following felixworkflow.oaw based on the
sculptorguiworkflow.oaw-stuff:

http://www.nabble.com/file/p20636034/felixworkflow.oaw felixworkflow.oaw 

The problem now is my FelixDslTransformation.ext to transform the
FelixDslModel in the SculptorMetaModel.

http://www.nabble.com/file/p20636034/FelixDslTransformation.ext
FelixDslTransformation.ext 

The editor generator generates my felixdsl.ecore with all emf classes like
DslModel. Now I have two DslModels, one from felixdsl and one from
sculptordsl. I can't use from now the checks und transformations from the
sculptor.generator project, because of this namespace problem?

Any ideas on how to solve this?

I've tried to set the sculptor::DslModel as superclass of felixdsl::DslModel
in the generated felixdsl.ecore, but this doesnt work.

The recommended way, like your wiki, is to put my changes directly in the
sculptor.dsl und sculptor.metamodel projects. But so I lost the
compatibility with your trunk.

Regards
   Steffen...
-- 
View this message in context: 
http://www.nabble.com/-sculptor--howto-extends-sculptor-dsl-and-metamodel-tp20636034s17564p20636034.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to