[EEF] Need help with customization to generated UI (Element Editors) [message #731175] |
Fri, 30 September 2011 07:51 |
|
Hi,
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.
2. If not how can I create a Custom Element Editor and hook it to the code.
Thanks!
Best Regards,
Nidhi
|
|
|
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 Messages: 280 Registered: July 2009 |
Senior Member |
|
|
Le 30/09/2011 09:51, Nidhi a écrit :
> Hi,
>
> 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 :
AdvancedTableComposition
AdvancedReferenceTable
> 2. If not how can I create a Custom Element Editor and hook it to the code.
>
> Thanks!
> Best Regards,
> Nidhi
--
Cheers,
Stéphane Bouchet, OBEO
|
|
|
Powered by
FUDForum. Page generated in 0.03405 seconds