Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [XPand] targetDef.proceed() fails
[XPand] targetDef.proceed() fails [message #503981] Wed, 16 December 2009 17:14 Go to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
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

Re: [XPand] targetDef.proceed() fails [message #504032 is a reply to message #503981] Wed, 16 December 2009 21:07 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14670
Registered: July 2009
Senior Member
Hello Marc,

are you using GMF's Xpand (fork?). Search the weg for the error message you posted resulted in org.eclipse.gmf.internal.xpand.ocl.ExpressionHelper. If so this should be a question asked in the GMF forum.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [XPand] targetDef.proceed() fails [message #504187 is a reply to message #504032] Thu, 17 December 2009 10:47 Go to previous message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
Thanks Christian, I'm waiting for a response in GMF.

Marc
Previous Topic:[Announce] M2T XPAND 0.8.0M4 is available
Next Topic:The Generator does not produce the correct results from the first time!?
Goto Forum:
  


Current Time: Sat Apr 27 04:02:48 GMT 2024

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top