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

Bug 317733

Summary: How to apply facets to a related metamodel
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gdupe, hugo.bruneliere, modisco.web-inbox, nicolas.bros
Version: 0.8.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 317577    

Description Fabien Giquel CLA 2010-06-23 13:54:16 EDT
Cannot apply a FacetSet for one given metamodel participating to one model.

The use case is this :

- define a facetSet on kdm.source ePackage
- open a kdm model obtained with "Discover KDM Source model from Container"
- try to apply my facetSet : it is not available

the problem : model root element is of "kdm.core.Segment" kind. So FacetSet are proposed for "kdm.core" and its extended metamodels.
"kdm.core" does not extend "kdm.source". "kdm.source" extends (subclasses) "kdm.core".

This bug is related to 309794.
Comment 1 Nicolas Bros CLA 2010-07-05 04:31:47 EDT
Fixed in revision 2650 by filtering the FacetSets in the dialog by their conformance to one of the EPackages referenced by the main Resource.
Comment 2 Fabien Giquel CLA 2010-07-06 12:39:24 EDT
The bug is really fixed, but i think the same fix should be applied to the customizations dialog too. So i reopened this bug.
Comment 3 Nicolas Bros CLA 2010-07-07 03:57:09 EDT
Done for customization dialog too in revision 2663.
Comment 4 Hugo Bruneliere CLA 2010-10-04 13:47:38 EDT
Bug fixed.