Skip to main content

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 06:54 Go to next message
Rami D. is currently offline Rami D.Friend
Messages: 14
Registered: August 2012
Junior Member

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»

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?

Re: qvto: Exception when invoking a helper method [message #903900 is a reply to message #902661] Mon, 27 August 2012 08:10 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


You should ask it on qVTO forum.


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: qvto: Exception when invoking a helper method [message #911823 is a reply to message #903900] Wed, 12 September 2012 11:44 Go to previous message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
No Message Body

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

Report message to a moderator

Previous Topic:Connection Selection Tolerance, Adjusting Connection Context, Automatic Layout
Next Topic:How I add text on GEF shapes..??
Goto Forum:

Current Time: Fri Oct 23 11:39:50 GMT 2020

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

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

Back to the top