The view is the root concept of the EEF language. It is used mainly to contain the various pages and groups.
The view contains the following properties:
In order to compute the label expression and the image expression, you have access to several variables:
java.lang.Object
(even if most of the time, an instance of
org.eclipse.emf.ecore.EObject
will be used) which will be the semantic element representing the input
org.eclipse.eef.core.api.InputDescriptor
which will contain both the original input of the view and its the semantic element which you can access using the variable
self
. In other concepts of your definition,
self
may be redefined so if you want to access the original input of your view, it can always be retrieved thanks to the variable
input
.
Groups are not under pages in order to be able to reuse groups in various pages. For example, in a complex meta-model with hundreds of EClasses and thousands of EStructuralFeatures, you may have dozens of those EClasses sharing some common properties (i.e. name, description), by having the ability to use a group in multiple pages, you can define a component of your user interface with various widgets, validation rules and even a specific layout that you can reuse easily.