Community
Participate
Working Groups
The Blank Template Provider will not create template instances for EClasses that conform to the reference type but for which the generated EMF.Edit providers do not supply new-child descriptors, in the case that some descriptors are provided for a subset of types that are instantiable in the reference. The consequence is that the user will be presented in the dialog EClasses that, upon choosing them, result in nothing being added to the table in the editor. For example, in a table of Fruit, if the generated edit providers offer a blank Apple and a blank Orange, but the model also has subtypes NavelOrange and BloodOrange, the latter two classes will be presented in the dialog when the user hits the green '+' button to add a new fruit but then nothing will happen when the user hits the 'Finish' button.
It seems to me that the problem is no so much that the blank template provider is not providing template wrappers for the new-child descriptors that are not provided by EMF.Edit, but that the dialog shows those classes for the user to select. The blank template provider is driven by the EMF.Edit supplied new-child descriptors, so it should respect the decision of the item providers not to provide some descriptors, and therefore not to invent blank templates for them. That much I think is correct. It's in the TemplateCreateNewModelElementStrategyProvider that the wizard dialog is showing EClasses that the EMF.Edit item providers are trying to say should not be available for the EReference in question.
New Gerrit change created: https://git.eclipse.org/r/135126
New Gerrit change created: https://git.eclipse.org/r/135127
Gerrit change https://git.eclipse.org/r/135127 was merged to [develop]. Commit: http://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/commit/?id=3394d89bed9378646aca58519446ae5289b8b3c0
(In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/135127 was merged to [develop].