Community
Participate
Working Groups
Build Identifier: Build id: 20110916-0149 org.eclipse.uml2.uml.ecore.exporter-2.4.100.v201008301510 When exporting an Ecore model to UML2, the Ecore "Default Value Literal" property value for a given EAttribute does not map to an equivalent "Default Value" element in UML2 model. No warning/error dialog is displayed nor is there an entry in the workspace .log file. This would suggest that this is not an error as such, but rather an omission. Whether the omission is intentional or not, I cannot determine, however to me this seems like a mapping that should take place when exporting. Reproducible: Always Steps to Reproduce: 1. Create an Ecore Model with an EClass that has at least one EAttribute. 2. Give the EAttribute a default value by setting its "Default Value Literal" property to an appropriate (non-zero/non-null) value. 3. Create a generator model (.genmodel), and genertae model code. Confirm that the default value is set in the generated code. 4. Export the model to a UML2 model using the "Export Model..." menu. 5. Confirm that the default value is not present within the generated UML2 model.
This does indeed appear to be an omission.
A fix has been committed and pushed to git.
The fix is available in an integration build. The M6 milestone build will be published tomorrow (Monday).