[XPand] targetDef.proceed() fails [message #503981] |
Wed, 16 December 2009 17:14 |
|
Hi,
In Galileo, I want to use «targetDef.proceed()» to "call" the parent rule to proceed with the transformation, but I get an error when do the transformation:
Exception (Can't evaluate expression: retured value is OclInvalid:in aspects::xpt::diagram::commands::CreateNodeCommand, line 23) while generating code
Can't evaluate expression: retured value is OclInvalid:in aspects::xpt::diagram::commands::CreateNodeCommand, line 23
My template code is:
«AROUND CreateNodeCommand FOR gmfgen::GenNode-»
«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
package «getDiagram().editCommandsPackageName»;
«EXPAND xpt::Common::generatedClassComment»
public class «createCommandClassName» extends org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand {
«targetDef.proceed()»
«EXPAND getEClassToEdit-»
...
}
«ENDAROUND»
Could anybody help me please?
Thanks!!
Marc
[Updated on: Wed, 16 December 2009 17:18] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04031 seconds