Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Need help with customization to generated UI (Element Editors)
[EEF] Need help with customization to generated UI (Element Editors) [message #731175] Fri, 30 September 2011 07:51 Go to next message
Nidhi  is currently offline Nidhi
Messages: 92
Registered: December 2009
Member

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 Go to previous message
Stephane Bouchet is currently offline Stephane Bouchet
Messages: 260
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
Previous Topic:[EMF Store Client] Configuration
Next Topic:[EEF] Where are generated the junit tests??
Goto Forum:
  


Current Time: Thu Oct 30 15:22:52 GMT 2014

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

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