Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » org.eclipse.emf.mwe.utils.Reader is not reading stereotype(Reading .emx file of RSM)
org.eclipse.emf.mwe.utils.Reader is not reading stereotype [message #1005992] Tue, 29 January 2013 13:50 Go to next message
Prodipta Mondal is currently offline Prodipta Mondal
Messages: 8
Registered: January 2013
Junior Member
Hi ,

I am trying to read .emx file using normal mwe workflow.I am not able to figure out why it's getting the stereoTyped elements of the model.Please find the complete workflow below.I am also attaching the model and profile which I am trying to generate.


<?xml version="1.0"?>
<workflow>
<!--Store Global Vars-->
<component class="com.accn.oaw.component.common.StoreGlobalVars" skipOnErrors="true">
<globalVarDef name="target_workspace" value="${target_workspace}"/>
<globalVarDef name="project_name" value="${project_name}"/>
<globalVarDef name="package_prefix" value="${package_prefix}"/>
</component>
<component class="com.accn.oaw.component.common.RSASetup">
<extensionMap from="efx" to="org.eclipse.uml2.uml.resource.UMLResource" />
<init value="true" />
</component>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<registerGeneratedEPackage value="org.eclipse.gmf.runtime.notation.NotationPackage"/>
<registerGeneratedEPackage value="com.ibm.xtools.umlnotation.UmlnotationPackage"/>
<platformUri value="${model_workspace}"/>
</bean>
<component id="read" class="org.eclipse.emf.mwe.utils.Reader">
<uri value="${inputmodel.file}"/>
<modelSlot value="model"/>
</component>
<bean class="org.eclipse.xtend.typesystem.emf.EmfMetaModel" id="metaModelId">
<metaModelFile value="com/accn/ecoremetamodel/common/MetaModel.ecore"/>
</bean>
<!-- transform model -->
<component class="org.eclipse.xtend.XtendComponent">
<metaModel class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
<profile value="com/accn/ecoremetamodel/common/Profile.profile.uml"/>
</metaModel>
<invoke value="com::accn::oaw::m2m::common::Transform::transformModel(model)"/>
<outputSlot value="transformedModel"/>
</component>
<!-- Generate Code -->
<component class="org.eclipse.xpand2.Generator">
<metaModel idRef="metaModelId"/>
<metaModel class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
<expand value="com::accn::expand::atomicservices::TemplateACS::root FOR transformedModel"/>
<outlet path="${target_workspace}"/>
<beautifier class="org.eclipse.xpand2.output.JavaBeautifier" configFile="CodeFormatter.xml"/>
</component>
</workflow>

Any suggestion would be appreciated.Thanks in advance.
Re: org.eclipse.emf.mwe.utils.Reader is not reading stereotype [message #1006610 is a reply to message #1005992] Fri, 01 February 2013 07:22 Go to previous message
Prodipta Mondal is currently offline Prodipta Mondal
Messages: 8
Registered: January 2013
Junior Member
I am still facing this issue.Is there any suggestion for fix ?
Previous Topic:XSD 2 Ecore with Xpand
Next Topic:XpandFacade and Classpath
Goto Forum:
  


Current Time: Wed Oct 22 01:53:55 GMT 2014

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

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