Community
Participate
Working Groups
Reported by Hallvard Traetteberg (http://www.eclipse.org/forums/index.php?t=msg&th=173580&start=0&S=beaab0157c90446724f4c7f7a3e5513c): "I've an attribute of the Ecore type EDouble, and the HUTN editor complains that 1.0 is not an EDouble value. If I change the type to EFloat 1.0 is accepted." A workaround, for now, is to change the metamodel: "I can change the type from EDouble to EFloat in the [meta]model, but changing the type in the [meta]model isn't always an option."
I've added a coerceValues method to AttributeSlot, which is called following the AST -> HUTN slot model transformation. The coerceValues method uses the EMF Factory's createFromString method to generate a value appropriate for the feature, as defined in the target metamodel.
I've committed this fix to SVN. Assigning to Dimitris for build integration. Thanks!
Fixed in the latest interim version.
Fixed in 0.8.0.