Bug 127835 - ECore sample: Represent EReference with specified EOpposite reference as a single diagram link
Summary: ECore sample: Represent EReference with specified EOpposite reference as a si...
Status: NEW
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks: 149543
  Show dependency tree
 
Reported: 2006-02-14 14:11 EST by Alex Shatalin CLA
Modified: 2011-05-01 08:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Shatalin CLA 2006-02-14 14:11:20 EST
Currently on ECore sample diagram each ERreference instance is represented as a single link on a diagram. Create EMF model with the following elements:

- Class1, Class2 EClasses
- EReference1 from Class1 to Class2 
- EReference2 from Class2 back to Class1
- specify EReference2 as an "EOpposite" for EReference1.

Initialize diagram using this model -> two links (for EReference1 and EReference2) will be created. Both EReferences should be represented as a one link with two roles - "client" and "supplier" (like association link in UML). 

If EReference1 is "containment" reference then link should be created on diagram from Class1 to Class2 (in EReference1 direction). If both references are not "containment" - link could be created in any direction.

This feature could be implemented by introducing special subclass of LinkModelFacet describing "link merge". Link merge in addition to the normal LinkModelFacet properties will store reference to another GenLink (an opposite link) and some additional constraints. 

Logic could be the following: if link instance which corresponds to the "opposite" GenLink found in the model and all the constraints are evaluated successfully, "opposite" link should be removed from diagram (or hidden?), "direct" link should show "opposite" link properties in addition to it's own.
Comment 1 Alex Shatalin CLA 2006-05-17 12:37:12 EDT
Not for the first version.
Comment 2 Alex Shatalin CLA 2007-06-05 08:25:56 EDT
Moving to next version..
Comment 3 Richard Gronback CLA 2007-10-23 09:27:17 EDT
Increasing priority and adding 'plan' keyword.
Comment 4 Alex Shatalin CLA 2008-05-20 12:38:47 EDT
Moving to the next version.
Comment 5 Eclipse Webmaster CLA 2010-07-19 22:18:34 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug