Bug 527710

Summary: Bad completion and error validation with tool filter
Product: [Modeling] Sirius Reporter: Etienne Juliot <etienne.juliot>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: florian.barbin
Version: 5.1.0Keywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
reproduce environment with ecore mm none

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)