CodeBlo{g|ck}: EMF
This post explains how to use Eclipse EMF dynamically. We start out be defining a metamodel (
MetaModelCreationTest.java. Then we use EMF's code generator to create the metamodel implementation classes and create a metamodel instance (
ModelCreationTest.java). Finally, we use EMF's reflective API to build the same model without using the generated metaclasses (
DynamicModelCreationTest.java).