Bug 527710 - Bad completion and error validation with tool filter
Summary: Bad completion and error validation with tool filter
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-11-24 04:28 EST by Etienne Juliot CLA
Modified: 2017-11-24 11:33 EST (History)
1 user (show)

See Also:


Attachments
reproduce environment with ecore mm (5.87 KB, application/x-zip-compressed)
2017-11-24 04:28 EST, Etienne Juliot CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Etienne Juliot CLA 2017-11-24 04:28:44 EST
Created attachment 271621 [details]
reproduce environment with ecore mm

Step to reproduce:
- create a Node Creation tool
- Add a Filter
- in Precondition, type aql:self. 
-> current result: completion propose a completion based on a semantic element, but the runtime expect to be in the context of the diagram. 
-> workaround: write self.target.oclAsType(xx). but completion doesn't work anymore and it generates a false validation error
-> expected behavior: change completion and validation to use the diagram as the self context (or change runtime behavior to be contextual to a semantic)