Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Exception when invoking a helper method
Exception when invoking a helper method [message #915025] Sun, 16 September 2012 03:35 Go to previous message
Rami D. is currently offline Rami D.
Messages: 14
Registered: August 2012
Junior Member
Hi,

I've added a new helper method to the existing file xpt/diagram/editparts/Utils.qvto:

helper getLabelText(classbody : String, key : String) : String {

var s : String := classbody;
...

return newStr;
}


Then i call this method from a template file
«DEFINE figureText(key : String) FOR gmfgen::InnerClassViewmap»
	«getLabelText(self.classBody,key)»
«ENDDEFINE»


While generating the diagram code I get the following exception:

Problems while generating code
Exception (Cannot find operation (getLabelText(String, String)) for the type (null):in aspects::impl::diagram::editparts::NodeEditPart, line 34) while generating code


I can rule out that neither 'self.classbody' nor 'key' is null, because when I use the arguments in the template itself, everything works fine. What could be the reason for that problem?

Regards,
Rami
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Strange reference to UCharacter in RunnableQVTParser
Next Topic:QVTo editor with changing input model
Goto Forum:
  


Current Time: Thu May 23 12:20:44 EDT 2013

Powered by FUDForum. Page generated in 0.01697 seconds