Fornax-Platform
Forum

sculptor dsl to the ecore model

View: New views
3 Messages — Rating Filter:   Alert me  

sculptor dsl to the ecore model

by dameerjoog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I just found out out about sculptor. When i create the .design file is it possible to convert it to the .ecore metatmodel file ?

I am sure there is a way because maybe internally that is what happens. All my oaw templates are based on ecore files so i need to get my hand on the generated ecore file.

Also what kind of conversion happens internally ?

1) is it  .design -> .ecore
2) is it .design -> .xmi

where is the metamodel (.ecore) for the xtext file ?

Thanks.

Re: sculptor dsl to the ecore model

by dameerjoog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for this .. i did not read the forums !

By reading sculptorworkflow.oaw one can figure that the name of the inputSlot has to be dslModel. So In the tutorials one only has to add :

        <component class="org.openarchitectureware.emf.XmiWriter">
           <inputSlot value="dslModel"/>
           <modelFile value="model.xmi"/>
        </component>

However the xmiwriter puts this in the xmi file :

xsi:schemaLocation="http://www.fornax-platform.org/sculptor/dsl org/fornax/cartridges/sculptor/dsl/sculptordsl.ecore"

this cant be used right away in the ecore reflective editor. So i changed this manually to point to my local copy of sculptordsl.ecore file. Now i am in business !

Thanks !




dameerjoog wrote:
Hi.

I just found out out about sculptor. When i create the .design file is it possible to convert it to the .ecore metatmodel file ?

I am sure there is a way because maybe internally that is what happens. All my oaw templates are based on ecore files so i need to get my hand on the generated ecore file.

Also what kind of conversion happens internally ?

1) is it  .design -> .ecore
2) is it .design -> .xmi

where is the metamodel (.ecore) for the xtext file ?

Thanks.

Re: sculptor dsl to the ecore model

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good! You might also be interested in reading the Developer's Guide to get an understanding of what happens internally. http://fornax-platform.org/cp/x/dAQ
/Patrik
LightInTheBox - Buy quality products at wholesale price