Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369673

Summary: [Facet] IsOneOfQuery
Product: z_Archived Reporter: Gregoire Dupe <gdupe>
Component: EMF-FacetAssignee: Gregoire Dupe <gdupe>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: emft.facet-inbox
Version: unspecifiedFlags: gdupe: juno+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Gregoire Dupe CLA 2012-01-25 10:25:21 EST
Hello,

To declare an instance independent customization we have to be able to add an attribute (color, font, label, etc.) to the meta-meta-class 'EClass' and to define its value for each instance of EClass (meta-class).

To define the customization attribute value of a chosen meta-class we have to extend the facet defining the customization attribute (color, font, label, etc.). The second facet (extending the first facet) will be used to override the customization attribute to define a value specific to the customized meta-class. This means that the second facet has applicable on the customized meta-class.

To avoid to define a query (Java or OCL) for each customized meta-class, we need a query type returning true if the source of the query is contained in a list of eObject.

Regards,
Grégoire
Comment 1 Gregoire Dupe CLA 2012-01-25 11:40:58 EST
I've committed an implementation of this new kind of query (and corresponding non regression test)

Committed revision 1513.

Can be marked resolved.
Comment 2 Gregoire Dupe CLA 2012-05-23 06:59:42 EDT
This bug can be closed.