Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323691 - [Model Browser] make LinkItem and AttributeItem adaptable to EReference and EAttribute
Summary: [Model Browser] make LinkItem and AttributeItem adaptable to EReference and E...
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.9.0 M1   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 06:04 EDT by Nicolas Bros CLA
Modified: 2013-04-29 07:54 EDT (History)
3 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.