Migration project
Lesson learned: WE NEED TESTS!!
Download from here
Add a dependency to fr.ibp.odv.boem.lib
Extra required dependencies (XTend)
Create a XTend class with a Boem factory
extension BoemFactory factory = new BoemFactory(YourMM.eINSTANCE)
import static extension fr.ibp.odv.boem.lib.Boems.*
How to create objects
How to create trees & resources
How to access object
How to add multiple objects
fr.ibp.odv.boem.tests.uml.UmlSettingReferences.testMultipleAdd()
How to set single reference
fr.ibp.odv.boem.tests.uml.UmlSettingReferences.testSingleSet()
How to use ids
fr.ibp.odv.boem.tests.uml.UmlSettingReferences.testUsingIds()
Defining an implicit id provider
extension BoemFactory factory = new BoemFactory(UMLPackage.eINSTANCE) //
.registerIdProvider([
if (it instanceof NamedElement) {
return it.name
}
return null
])
How to use implicit ids
Thanks for you attention. Any question?
Thanks also to Nicolas Peransin and Laurent Latil