|
Re: [MTL] Reading Opaque Expressions [message #639157 is a reply to message #638226] |
Mon, 15 November 2010 12:57 |
|
Hi Siegfried,
What are you doing exactly? What do you mean by "I get something like [<...>]"?
I'd say these brackets come from the fact you are manipulating a list, but Acceleo doesn't generate them. Thus I don't know where you "get" them.
Laurent Goubet
Obeo
|
|
|
Re: [MTL] Reading Opaque Expressions [message #639171 is a reply to message #639157] |
Mon, 15 November 2010 13:51 |
Siegfried Nolte Messages: 48 Registered: August 2009 |
Member |
|
|
Hi Laurent,
of course you are right. I'm dealing with lists.
I'm doing some tests with the UML action model.
[if (oa.oclIsTypeOf(OpaqueAction))][oa.name/] [oa.body/][/if]
That delivers "'somename' ['content of body']"
The following statement does better:
[oa.body->first()/]
That delivers "'somename' 'content of body'"
Thanks,
Siegfried
[Updated on: Mon, 15 November 2010 13:52] Report message to a moderator
|
|
|
Re: [MTL] Reading Opaque Expressions [message #639192 is a reply to message #639171] |
Mon, 15 November 2010 15:17 |
|
Siegfried,
Okay, then I was wrong with my assumption that "Acceleo doesn't generate them" ... I believe you are using an older version of Acceleo (IIRC, I've specialized the generation of "List" as Strings since 3.0.0).
You should no longer see those brackets with an updated Acceleo. If you do ... then something escapes me and... please raise a bug if it's the case .
Laurent Goubet
Obeo
|
|
|
|
Re: [MTL] Reading Opaque Expressions [message #1782437 is a reply to message #1781999] |
Fri, 23 February 2018 13:45 |
|
Hello,
Please create your own thread for question instead of necro-ing unrelated old threads. As for your question, you can use whatever input for Acceleo generation as long as they're EMF models, such as activity diagrams that can be read as an UML diagram and passed on to an acceleo generator.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds