|Re: Setting genmodel's "Property Type" to "Editable" for all fea [message #1702669 is a reply to message #1702608]
||Fri, 24 July 2015 03:20
| Ed Merks
Registered: July 2009
On 23/07/2015 3:48 PM, Francois Cabrol wrote:
> Hi everyone,
> I am developing a simple EMF-based RCP application enabling to edit
> the objects of an EMF model using forms. I am still hesitating between
> EEF and EMF Forms to perform form rendering.
> I noticed the same problem whatever the form renderer: some
> EReference features do not appear in the forms. After some
> investigation, I noticed that in my .genmodel, the "Edit > Property
> Type" of each of these references is "None" instead of "Editable".
> 1) I could not understand what are the criteria EMF uses to set the
> value of this Property Type when the .ecore model is reloaded. Why are
> some references Editable whereas some other are "None" ?
Generally containment and container references will have this set to
None when the GenModel is first created (and the corresponding
GenFeature is first created). The assumption being that these
relationships are shown in the tree view, i.e., the GenFeature for a
containment reference will have the Children and Create Child properties
initialized to true.
> 2) Is there a way I can configure the generator, so that the Property
> Type is "Editable" for all references ?
No. But keep in mind that whatever you change the values of the Gen*
properties to, reloading will preserve those values, so you only have to
change them once, after first creating the model, or when added a new
feature to a class of your model.
> Thank you,
Powered by FUDForum
. Page generated in 0.01867 seconds