Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EEF/User Guide/Custom Widget Generation"
< EEF | User Guide
(New page: == Need to generate new widgets ? == In the CustomElementEditor guide, we saw how to ponctually include specific widgets in EEF generated editing forms. If ...) |
|||
Line 2: | Line 2: | ||
In the [[../Custom_Element_Editor | CustomElementEditor guide]], we saw how to ponctually include specific widgets in EEF generated editing forms. If this need is becoming common, EEF offers the ability to extend its generators to generate new widgets. | In the [[../Custom_Element_Editor | CustomElementEditor guide]], we saw how to ponctually include specific widgets in EEF generated editing forms. If this need is becoming common, EEF offers the ability to extend its generators to generate new widgets. | ||
+ | |||
+ | == Environment initialization == | ||
+ | |||
+ | As we will create acceleo generator, we need to install the Acceleo SDK. It can be done via the release train: | ||
+ | |||
+ | [[Image:1_-_EEF_CustomGen_AcceleoInstall.png | acceleo install]] | ||
+ | |||
+ | Next, in an empty workspace, we create an Acceleo Project. In the new project wizard, we can initialize our first template: | ||
+ | |||
+ | [[Image:EEF_CustomGen_TemplateGettersSetters.png | Acceleo project creation]] | ||
+ | |||
+ | Let's name it ''spinnerGettersSetter''. It need two metamodels: | ||
+ | * http://www.eclipse.org/emf/eef/components/1.0.0 | ||
+ | * http://www.eclipse.org/emf/eef//views/1.0.0 | ||
+ | |||
+ | The other data are marginal, we will erase the generated body of this module. |
Revision as of 12:07, 6 January 2012
Need to generate new widgets ?
In the CustomElementEditor guide, we saw how to ponctually include specific widgets in EEF generated editing forms. If this need is becoming common, EEF offers the ability to extend its generators to generate new widgets.
Environment initialization
As we will create acceleo generator, we need to install the Acceleo SDK. It can be done via the release train:
Next, in an empty workspace, we create an Acceleo Project. In the new project wizard, we can initialize our first template:
Let's name it spinnerGettersSetter. It need two metamodels:
The other data are marginal, we will erase the generated body of this module.