|
Re: [XPand] questions in using AROUND [message #650860 is a reply to message #650857] |
Wed, 26 January 2011 22:51   |
|
Hi,
yes you can have the advices in the same file but this is a bad bad practice
but your advices have to be full qualified
«AROUND templates::root::element FOR test::Element»
//this is the element «name»
«targetDef.proceed()»
«ENDAROUND»
and if cource you have to prepare something in the workflow
<component adviceTarget="generator" id="reflectionAdvice" class="org.eclipse.xpand2.GeneratorAdvice">
<advices value="templates::root"/>
</component>
.....
<component class="org.eclipse.xpand2.Generator" id="generator">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
<expand
value="templates::root::Root FOR model" />
<outlet path="src-gen" >
<postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />
</outlet>
</component>
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.01997 seconds