Community
Participate
Working Groups
Build Identifier: 20100917-0705 Running the "Generate EEF Architecture" on my eefgen file produces source with many of these errors: The nested type org.eclipse.emf.ecore.util.FeatureMap$Entry cannot be referenced using its binary name on code like this in in the generated components: /** * Used to update the views * */ protected void runUpdateRunnable(final Notification msg) { if (AmlPackage.eINSTANCE.getAnnotation_Mixed().equals(msg.getFeature()) && basePart != null) { if (msg.getEventType() == Notification.ADD) basePart.addToMixed((org.eclipse.emf.ecore.util.FeatureMap$Entry) msg.getNewValue()); else if (msg.getEventType() == Notification.REMOVE) basePart.removeToMixed((org.eclipse.emf.ecore.util.FeatureMap$Entry) msg.getNewValue()); } if (AmlPackage.eINSTANCE.getAnnotation_Id().equals(msg.getFeature()) && basePart != null){ if (msg.getNewValue() != null) { basePart.setId(EcoreUtil.convertToString(XMLTypePackage.eINSTANCE.getString(), msg.getNewValue())); } else { basePart.setId(""); } } } and on code like this in the generated parts: /** * Add a value to the group multivalued attribute. * @param newValue the value to add */ public void addToGroup(org.eclipse.emf.ecore.util.FeatureMap$Entry newValue); The necessary repair seems to be replacing the "$" character with a "." character everywhere. See also discussion on forum http://www.eclipse.org/forums/index.php?t=rview&goto=658177#msg_658177. Reproducible: Always Steps to Reproduce: 1. Create an Ecore model with an EClass containing an EReference of type EFeatureMapEntry 2. Create its genmodel 3. Initialize EEF from the genmodel 4. Generate EEF content from its eefgen
Created attachment 190572 [details] Reference eefgen file
Created attachment 190573 [details] Reference ecore file
The Eclipse EEF team has worked over the past few months on a brand new runtime using a reflective approach which can be used more easily with Eclipse Sirius. Since we do not plan to continue to work on the old runtime and its code generation approach, I will close this issue for now. If you want to contribute, you can reopen this issue and submit a contribution to the project thanks to our Gerrit: https://git.eclipse.org/r/#/admin/projects/eef/org.eclipse.eef