Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354128 - TopLevelElement for Canvas cannot be DocumentRoot
Summary: TopLevelElement for Canvas cannot be DocumentRoot
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.4   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 08:22 EDT by Mickael Istria CLA
Modified: 2011-08-08 12:01 EDT (History)
0 users

See Also:


Attachments
Stuff to reproduce (817.94 KB, application/zip)
2011-08-08 08:22 EDT, Mickael Istria CLA
no flags Details
Suggested patch (1.56 KB, patch)
2011-08-08 10:57 EDT, Mickael Istria CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2011-08-08 08:22:57 EDT
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
"
Comment 1 Mickael Istria CLA 2011-08-08 08:39:08 EDT
This only happens when the domain model contains a DocumentRoot element (generally in case of XML/XSD-first approach for the ECore model).
Comment 2 Mickael Istria CLA 2011-08-08 09:48:04 EDT
This issue only occurs if the top-level element of the canvas is the DocumentRoot.
Comment 3 Mickael Istria CLA 2011-08-08 10:57:16 EDT
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.
Comment 4 Mickael Istria CLA 2011-08-08 12:01:34 EDT
Local tests working fine.
Committed