Acceleo getValue problem with port metaclass [message #1853369] |
Wed, 29 June 2022 10:33  |
Eclipse User |
|
|
|
Hi, I am using Papyrus version 4.22 and acceleo 3.7.11
In my papyrus profile I create a Stereotype from Port Metaclass with a variable.
It is however impossible to read the value from acceleo for ports.
Inside the target uml I have a composite structure diagram with classes together with ports
[aClass.getValue( aClass.getAppliedStereotype('Test::Module'),'Memory')/] works for the Class elements but not for Port type elements. (I can not reach the value)
Is it possible to reach the information stored in papyrus profiles for port elements from a loop like this?
[template public generateElement(aClass : Class)]
[comment @main/]
[file (aClass.name + '.cpp', false, 'UTF-8')]
[for (e: uml::NamedElement | aClass.ownedElement ) ]
Thank you,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds