This is annoying, but I haven't investigated it very much since I haven't found it critical. It is some kind of limitation of oAW that it can't load the meta model from the jar files of the project classpath.
There is two workarounds: 1. Remove the org.openarchitectureware.base.oawNature from .project file. This has the consequence that code completion and other oaw editor stuff doesn't work. 2. Checkout sculptor projects from subversion and add a project dependency in your project to fornax-cartridges-sculptor-generator. Place this project dependency before the jar file dependencies. This also has the benefit that you can right click on workflow.oaw and generate with Run as > oAW Workflow. /Patrik amphoras wrote: > > 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-tp18115877s17564p18116102.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
