Hi,

I took the default SpecialCases.xpt file and started adding my AOP advices
in it.  The code looks like this:

«REM»
You can change code generation templates by using
Aspect-Oriented Programming features of oAW. You
can add AROUND advice in this file. Read 
Sculptor Developer's Guide for more information.
«ENDREM»     

«IMPORT sculptormetamodel»
«EXTENSION extensions::helper»
«EXTENSION extensions::properties»

«REM»No need to create getter and setter for "id" because it's in our
special base class.«ENDREM»
«AROUND *::propertyAccessors FOR Attribute»
        «IF name != "id" -»
        «targetDef.proceed() -»
    «ENDIF -»
«ENDAROUND»

«REM»Don't generate acceptToString() because it refers to a method in the
superclass
that we don't have.«ENDREM»
«AROUND *::acceptToString FOR DomainObject»
«ENDAROUND»

This code works, but I can't get rid of the errors in the editor.  The
errors say:

        Couldn't find Attribute sculptor--demo/src/main/resources/templates
SpecialCases.xpt        line: 12        1214409050145   79231

        Couldn't find DomainObject      
sculptor-demo/src/main/resources/templates
SpecialCases.xpt        line: 20        1214409050145   79232

        Unknown variable, type or enumeration literal 'name'
sculptor-demo/src/main/resources/templates      SpecialCases.xpt        line: 13
1214409050145   79233

I've tried Project->Clean many times to no avail.  How do I get rid of these
errors?

Thanks!

--Polly
-- 
View this message in context: 
http://www.nabble.com/-Sculptor--Errors-in-SpecialCases.xpt-tp18115877s17564p18115877.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to