Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EEF/User Guide/Custom Element Editor
Custom Properties Edition Element
EEF generators offer a set of widget to build EMF editing forms. Sometime other widget needs appear to create more efficient GUIs. In this case, EEF users can employ CustomPropertiesEditionElement to generate user code areas inside the EEF properties code.
Sample
Let's start this sample with this sample Ecore model :
By following the first generation tutorial, EEF generates theses forms :
Now suppose we want to use a spinner instead of a Text for the age entry. Spinners aren't yet available in the EEF generation. We can, in this case use a CustomPropertiesEditionElement.
CustomPropertiesEditionElement in the EEF components model
The first step is to replace the PropertiesEditionElement generated by the EEF Initializer with a CustomPropertiesEditionElement. This must be done in the PropertiesEditionComponent associated to our EClass Person, the Person PropertiesEditionElement.