|Re: [EEF] Need help with customization to generated UI (Element Editors) [message #731283 is a reply to message #731175]
||Fri, 30 September 2011 14:01
| Stephane Bouchet
Registered: July 2009
Le 30/09/2011 09:51, Nidhi a écrit :|
> I have the following scenario:
> 1. I have an EObject Employee and another EObject Skills
> 2. Each Employee can have many skills.
> However, while selecting for an existing skill for an Employee it should
> be possible to create his own new Skill too. I don't want to create a
> Skill seperately and then map it to an Employee. I want to create a new
> Skill or re-use and existing one while mapping skills to an Employee.
> My question is the following:
> 1. Is there a Element Editor in EEF that allows me to do the same.
It depends how you created the skills references in your metamodel.
It should be a reference with containment set to true, in order to
create new skills for this employee. if you want to choose a skill that
is already created, you need to create a reference without containment.
you cannot mix both.
For both cases, EEF provides a widget :
> 2. If not how can I create a Custom Element Editor and hook it to the code.
> Best Regards,
Stéphane Bouchet, OBEO
Powered by FUDForum
. Page generated in 0.02159 seconds