| Summary: | TopLevelElement for Canvas cannot be DocumentRoot | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Tooling | Reporter: | Mickael Istria <mistria> | ||||||
| Component: | Core | Assignee: | Mickael Istria <mistria> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P3 | ||||||||
| Version: | 2.4 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
This only happens when the domain model contains a DocumentRoot element (generally in case of XML/XSD-first approach for the ECore model). This issue only occurs if the top-level element of the canvas is the DocumentRoot. Created attachment 201082 [details]
Suggested patch
A suggested patch that fix the generation issue when the root of the Diagram is a DocumentRoot.
Integration tests passed OK. I'll commit it as soon as I have my diagram fully working.
Local tests working fine. Committed |
Created attachment 201074 [details] Stuff to reproduce While trying to develop a new GMF diagram for JBI, I got the following error: Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::editor::DiagramEditorUtil, line 254 " Problems while generating code Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::editor::DiagramEditorUtil, line 254) while generating code Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::editor::DiagramEditorUtil, line 254 "