Bug 424208 - Select model element variable seems to not provide the diagram variable in the semantic candidate expression
Summary: Select model element variable seems to not provide the diagram variable in th...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0M4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 525257
  Show dependency tree
 
Reported: 2013-12-17 04:06 EST by Hugo Marchadour CLA
Modified: 2018-12-18 03:37 EST (History)
3 users (show)

See Also:


Attachments
Sample with acceleo3 interpreter (50.30 KB, image/png)
2013-12-17 04:06 EST, Hugo Marchadour CLA
no flags Details
Case to reproduce (2.89 KB, application/zip)
2014-01-21 01:58 EST, Hugo Marchadour CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Marchadour CLA 2013-12-17 04:06:02 EST
Created attachment 238393 [details]
Sample with acceleo3 interpreter

We have a case of "Select model element variable" in a Create Container tool (but I don't think it's related to the parent tool) that seems to provide the diagram variable in the candidate expression. I try to use it with Acceleo3 (or service interpreter) without success.

In debug, ServiceInterpreter.evaluate seems to correctly get the diagram ident but "evaluateVariable(target, values[i].trim());" doesn't retrieve the diagram value. I think that we display the diagram value as available in help without provide it.
Comment 1 Hugo Marchadour CLA 2013-12-17 04:33:09 EST
We can workaround this issue with a selection wizard instead of a select model element variable.
Comment 2 Laurent Redor CLA 2013-12-23 08:40:24 EST
Hugo, can you attach a use case to reproduce your problem (Semantic model, Representation files model (.aird), VSM (.odesign)?
Comment 3 Hugo Marchadour CLA 2014-01-21 01:58:25 EST
Created attachment 239162 [details]
Case to reproduce

Ok I add a sample with 3 tools.
The "CopyLabel with container" tool works.
"CopyLabel with containerView" and "CopyLabel with diagram" don't work.
Comment 4 Maxime Porhel CLA 2014-01-27 05:37:15 EST
Steps to reproduce:
* Unzip the provided project in your workspace.
* Double clic on 424208.aird file (the provided project is not a Modeling Project, you have to manually open the session).
* Open the "new 424208" diagram.
* Select and try each tool displayed in the palette:
** "CopyLabel with container": OK.
** "CopyLabel with containerView": KO
** "CopyLabel with diagram": KO