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.
Difference between revisions of "Sphinx/tutorials"
(New page: == Model Editing Enhancements == === Customizing Tree Views === ==== Displaying References as Children ==== ==== Adding Transient Nodes ==== ==== Adding Transient Nodes ==== ==== Supp...) |
(→Customizing Tree Views) |
||
Line 1: | Line 1: | ||
== Model Editing Enhancements == | == Model Editing Enhancements == | ||
− | === Customizing Tree Views === | + | === Customizing Tree Views === |
− | + | The EMF Edit framework and its code generator allow creating easily editors and tree views from EMF models. However, the structure that we want displaying into tree view may be often different to the EMF model structure. The EMF Edit framework provides also mechanisms allowing customizing editors and tree views. | |
− | + | In the following sections, we’ll describe how to easily customize tree views in order to display customized tree view structure. There are several kings of tree view customization. For instance, we may want displaying object references as children, adding non-model elements or suppressing model objects in tree views. We’ll use an extract of the Hummingbird meta-model to illustrate these kinds of tree views customization, as shown in following image:<br> | |
− | ==== Adding Transient Nodes ==== | + | <br> |
+ | |||
+ | ==== Displaying References as Children ==== | ||
+ | |||
+ | ==== Adding Transient Nodes ==== | ||
+ | |||
+ | ==== Adding Transient Nodes ==== | ||
==== Suppressing Model Objects in views ==== | ==== Suppressing Model Objects in views ==== | ||
=== Customizing Object Property Sheet === | === Customizing Object Property Sheet === |
Revision as of 04:13, 22 July 2011
Contents
Model Editing Enhancements
Customizing Tree Views
The EMF Edit framework and its code generator allow creating easily editors and tree views from EMF models. However, the structure that we want displaying into tree view may be often different to the EMF model structure. The EMF Edit framework provides also mechanisms allowing customizing editors and tree views.
In the following sections, we’ll describe how to easily customize tree views in order to display customized tree view structure. There are several kings of tree view customization. For instance, we may want displaying object references as children, adding non-model elements or suppressing model objects in tree views. We’ll use an extract of the Hummingbird meta-model to illustrate these kinds of tree views customization, as shown in following image: