Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Setting genmodel's "Property Type" to "Editable" for all features
Setting genmodel's "Property Type" to "Editable" for all features [message #1702608] Thu, 23 July 2015 13:48 Go to next message
Francois Cabrol is currently offline Francois CabrolFriend
Messages: 32
Registered: January 2015
Member
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" ?

2) Is there a way I can configure the generator, so that the Property Type is "Editable" for all references ?

Thank you,

François

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 Go to previous message
Ed Merks is currently online Ed MerksFriend
Messages: 33138
Registered: July 2009
Senior Member
Francois,

Comments below.

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,
>
> François
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] How to proceed when a genmodel changes?
Next Topic:Copy a CDOResource contents to a text file
Goto Forum:
  


Current Time: Sat Apr 20 09:03:28 GMT 2024

Powered by FUDForum. Page generated in 0.04290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top