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