Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] EObjectFlatComboViewer displays all Resources instead of specific EMF resource
[EEF] EObjectFlatComboViewer displays all Resources instead of specific EMF resource [message #731454] Sat, 01 October 2011 04:48 Go to next message
Nidhi  is currently offline Nidhi Friend
Messages: 92
Registered: December 2009
Member

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 Go to previous message
Stephane Bouchet is currently offline Stephane BouchetFriend
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
Previous Topic:Maven Artifacts for MWE
Next Topic:zip archive support (Edapt)
Goto Forum:
  


Current Time: Fri Mar 29 14:00:30 GMT 2024

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

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

Back to the top