Accessing attributes to set up pre/post-conditions [message #1834525] |
Wed, 11 November 2020 13:18  |
Eclipse User |
|
|
|
Hi,
I have classes in my metamodel with several boolean attributes. This is because based on how they are set in sirius, I may want to change how the object looks or behaves. The first thing that I am doing to figure out how to create the condition for the conditional style is by using the interpreter on the model element to access the attribute and see its return value. At this point however I am unable to find the syntax for Acceleo that would allow me to do so. I figured all I would have to do is click on the attribute and then in the interpreter window have [self.attribute/] to have it return the value I set for the attribute; in this case true or false.
I have not found the tutorials to be very helpful when describing how to do this and pressing 'ctrl+spcbar' hasn't shown me the commands that I would think I need to do it. Any helps?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03389 seconds