Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EGL] Can't get the type name of an operation (UML to Java tranformation)
[EGL] Can't get the type name of an operation [message #941153] Fri, 12 October 2012 04:53 Go to previous message
Patricia Fernández is currently offline Patricia Fernández
Messages: 28
Registered: October 2012
Junior Member
Hello,

I've the following .egl file:

	
	[% for (oper in currentClass.AllOperations) {%]
  		 [%=oper.visibility%] [%=oper.type.name%]  [%=oper.name%] () {
  		}   	
        [%}%]


The problem is that [%=oper.type.name%] is not working. It gives me an Called feature name on undefined object error. If I put [%=oper.type%] it shows me:

org.eclipse.uml2.uml.internal.impl.PrimitiveTypeImpl@14f6ce4 (name: Boolean, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false)


And, as I want to get the name of the type, I wrote [%=oper.type.name%] but it's not working.

I made a similar file with attributes instead of operations, and [%=attr.type.name%] worked fine.

If anyone could help me.
Thanks in advance.

[Updated on: Fri, 12 October 2012 04:54]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Using Epsilon for model refinement/update
Next Topic:Customizing ModeLink/Exeed Editor
Goto Forum:
  


Current Time: Sat May 18 23:28:31 EDT 2013

Powered by FUDForum. Page generated in 0.01661 seconds