Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » qvto: Exception when invoking a helper method
qvto: Exception when invoking a helper method [message #902661] Sun, 19 August 2012 02:54 Go to next 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
Re: qvto: Exception when invoking a helper method [message #903900 is a reply to message #902661] Mon, 27 August 2012 04:10 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 558
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

You should ask it on qVTO forum.

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Re: qvto: Exception when invoking a helper method [message #911823 is a reply to message #903900] Wed, 12 September 2012 07:44 Go to previous message
Chris B. is currently offline Chris B.
Messages: 37
Registered: November 2011
Member
No Message Body

[Updated on: Wed, 12 September 2012 08:13]

Report message to a moderator

Previous Topic:Connection Selection Tolerance, Adjusting Connection Context, Automatic Layout
Next Topic:Drag and drop icon change
Goto Forum:
  


Current Time: Thu Jul 31 09:46:25 EDT 2014

Powered by FUDForum. Page generated in 0.03623 seconds