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

Bug 323691

Summary: [Model Browser] make LinkItem and AttributeItem adaptable to EReference and EAttribute
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: fabien.giquel, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Nicolas Bros CLA 2010-08-26 06:04:51 EDT
A ModelElementItem can be adapted to an EObject like this:
EObject eObject = (EObject) Platform.getAdapterManager().getAdapter(aModelElementItem , EObject.class);

We should also make LinkItem and AttributeItem adaptable to EReference and EAttribute, respectively.
Comment 1 Nicolas Bros CLA 2010-08-26 06:05:59 EDT
Done in revision 2969.
Comment 2 Hugo Bruneliere CLA 2010-10-05 04:52:05 EDT
Bug fixed.