Community
Participate
Working Groups
Generic method EFactory.create(..) should be used instead of concrete one (e.g. EcoreFactory.createEClass()) to create new instances of user domain model. For example, there is no concrete method to create EStringToStringMapEntryImpl inside EcoreFactory interface (since there is no EStringToStringMapEntry interface in EMF), but is it possible to create EStringToStringMapEntryImpl using EMF reflection method EcoreFactory.create (EcorePackage.getEStringToStringMapEntry()). So, we can use this generic method everythere in GMF to create an instance of EObject. E.g. in PaletteFactory.
Reflective method used
[GMF Restructure] Bug 319140 : product GMF and component Templates was the original product and component for this bug