This is how you can use a Xtend advice with the generator.
Add extensionAdvices to the GeneratorAdvice in your workflow.oaw

        <component adviceTarget="generator" id="reflectionAdvice"
                        class="oaw.xpand2.GeneratorAdvice">
                <advices value="templates::SpecialCases" />
                <extensionAdvices value="extensions::ExtOverride" />
                <fileEncoding value="iso-8859-1" />
        </component>

Your Xtend advice file located in
src/main/resources/extensions/ExtOverride.ext might look like this:

import sculptormetamodel; 

extension extensions::helper; 

around extensions::helper::getExtendsAndImplementsLitteral(DomainObject
domainObject) : 
    ((String) ctx.proceed()) + "/* MODIFIED */";

/Patrik

-- 
View this message in context: 
http://www.nabble.com/Using-AOP-to-extend-ext-file-tp18930627s17564p18968491.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to