Unfortunately the extension does not work out of the box for me. I'm using openarchitectureware 4.3.1 from the oaw-development pluginbuilder on a mac. Exactly I use 4.3.1.20080910-1400PRD. After a little time of debugging I found a solution to get it working:
- check out project org.openarchitectureware.util.stdlib from the oaw CVS
- switch that projet to branch B_v43 (Team - Switch to Another Branch or Version...)
- hint: the project must be placed in the workspace where the oaw project is located that will use tracing, because a reference to the trace metamodel (trace.ecore) in the plugin is incorrect (it points to
${workspace}/org.openarchitectureware.util.stdlib/src/org/openarchitectureware/util/stdlib/trace.ecore)
workflow:
<workflow>
<bean class="org.eclipse.mwe.emf.StandaloneSetup" >
<-- important to get the correct workspace path -->
<platformUri value=".."/>
</bean>
<-- XtendComponent and/or Generator -->
<component class="org.openarchitectureware.util.stdlib.TraceComponent">
<traceModelSlot value="tracemodel" />
<traceName value="trace" />
</component>
<component id="traceWriter" class="org.openarchitectureware.emf.XmiWriter">
<inputSlot value="tracemodel"/>
<modelFile value="gen/tracing.trace"/>
</component>
</workflow>
An short example of tracing model2model transformation shows the following snippet:
extension org::openarchitectureware::util::stdlib::tracing;
create Class Class2Table(Class c) :
createTrace(c,this,"m2m") ->
setName(c.name);
[...] Blog item navigation: Getting oaw TraceComponent working [...]
ReplyDeleteHi Michael!
ReplyDeleteI'm writing a documentation of the stdlib features for oAW's reference manual. Can I copy the samples from your blog here?
Best wishes,
~Karsten
Hi Karsten,
ReplyDeleteof course you can use it.
Regards,
micha
Do you know if this problem happens in oaw 5( Eclipse Modeling)????
ReplyDeleteNo, I have not been tested
ReplyDelete