Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » org.eclipse.emf.mwe.utils.Reader is not working(org.eclipse.emf.mwe.utils.Reader is not working)
org.eclipse.emf.mwe.utils.Reader is not working [message #1007074] Mon, 04 February 2013 10:52 Go to next message
Prodipta Mondal is currently offline Prodipta MondalFriend
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.

[Updated on: Mon, 04 February 2013 10:52]

Report message to a moderator

Re: org.eclipse.emf.mwe.utils.Reader is not working [message #1007076 is a reply to message #1007074] Mon, 04 February 2013 10:55 Go to previous messageGo to next message
Prodipta Mondal is currently offline Prodipta MondalFriend
Messages: 8
Registered: January 2013
Junior Member
You can find more details on this link files and model http://www.eclipse.org/forums/index.php/t/452246/
Re: org.eclipse.emf.mwe.utils.Reader is not working [message #1007097 is a reply to message #1007074] Mon, 04 February 2013 12:44 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4188
Registered: July 2009
Senior Member
Hi

I am not aware of what Eclipse support there is for *.emx, so I can only
redirect your question to your *.emx source and/or the MWE tooling (on
the EMF newsgroup).

Regards

Ed Willink


On 04/02/2013 10:52, Prodipta Mondal wrote:
> 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.
Previous Topic:[ATL] M2M: a Set of target elements in the transformation
Next Topic:Large Model, minor changes
Goto Forum:
  


Current Time: Mon Dec 22 00:00:16 GMT 2014

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

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