[EEF] EObjectFlatComboViewer displays all Resources instead of specific EMF resource [message #731454] |
Sat, 01 October 2011 04:48 |
|
Hi,
I have the following scenario:
1. A --> B (1..n containment reference)
2. B --> C (1..n non containment reference)
Through EMF I create a table (TableComosition), in the editor for A, the add button of the table pops-up a dialog for B. This dialog inturn has a leads to pop-up for C using EObjectFlatComboViewer. Hence Widget EObjectFlatComboViewer is used to display C.
However what I notice is that EObjectFlatComboViewer displays C of all the resources in the workspace and not the specific EMF resource with which I am working.
I have the following question:
1. How can I only pass the EMF resource of interest and not allResources.
Then instead of EObjectFlatComboViewer for C I want to use EMFComboViewer. This would work on the specific resource. This would avoid multiple levels of pop-ups.
Thanks,
Best regards
Nidhi
|
|
|
Re: [EEF] EObjectFlatComboViewer displays all Resources instead of specific EMF resource [message #733776 is a reply to message #731454] |
Wed, 05 October 2011 15:35 |
Stephane Bouchet Messages: 280 Registered: July 2009 |
Senior Member |
|
|
hi,
comments below :
Le 01/10/2011 06:48, Nidhi a écrit :
> Hi,
>
> I have the following scenario:
> 1. A --> B (1..n containment reference)
> 2. B --> C (1..n non containment reference)
>
> Through EMF I create a table (TableComosition), in the editor for A, the
> add button of the table pops-up a dialog for B. This dialog inturn has a
> leads to pop-up for C using EObjectFlatComboViewer. Hence Widget
> EObjectFlatComboViewer is used to display C.
> However what I notice is that EObjectFlatComboViewer displays C of all
> the resources in the workspace and not the specific EMF resource with
> which I am working.
>
> I have the following question:
> 1. How can I only pass the EMF resource of interest and not allResources.
In the generated propertiesEditonComponent Class, there is a usercode
place there you can add your own filter. ( look at the "Start of user
code for additional businessfilters for xxx" in initPart method )
>
> Then instead of EObjectFlatComboViewer for C I want to use
> EMFComboViewer. This would work on the specific resource. This would
> avoid multiple levels of pop-ups.
You can modify the component model for this, just choose Comboviewer
instead of eobjectflatcomboviwer.
>
> Thanks,
> Best regards
> Nidhi
>
>
--
Cheers,
Stéphane Bouchet, OBEO
|
|
|
Powered by
FUDForum. Page generated in 0.04087 seconds