Bug 568819

Summary: UML2Ecore2Xtext is not adequately tested.
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: christian.dietrich.opensource
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=569035
Whiteboard:

Description Ed Willink CLA 2020-11-15 07:50:52 EST
In https://www.eclipse.org/forums/index.php/mv/msg/1105916/1834660/#msg_1834660 a user starts with a UML profile, uses genmodel to convert it to Ecore then uses the Xtext New wizard to convert to an Xext grammar.

This nearly works.

import "http://www.eclipse.org/uml2/5.0.0/UML" as uml

is correctly generated but

import "http://www.eclipse.org/uml2/5.0.0/Types" as types

is not. Missing import is required as of UML 2.5 / UML2 5.0, i.e. since 2014.

Also if the user uses the standard built-in String/Integer etc, the result is a bad EDataType rule that returns an empty name. The produced type could be usefully mapped to the Ecore type for the same class.

Needs a JUnit test.