Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328898 - Bidirectional features with imported model
Summary: Bidirectional features with imported model
Status: CLOSED DUPLICATE of bug 282486
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 19:18 EDT by Dénes Harmath CLA
Modified: 2010-10-29 02:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dénes Harmath CLA 2010-10-27 19:18:59 EDT
Build Identifier: 20100617-1415

When importing a model, bidirectional references require concrete syntax on both ends, which is actually duplication from the user's point of view. It would be great if the opposite reference would be automatically derived.

Reproducible: Always

Steps to Reproduce:
As of now, the user receives errors such as this:

The opposite features 'extends' of 'org.xtext.example.mydsl.myDsl.impl.GreetingImpl@113c6f6{platform:/resource/models/my.mydsl#//@greetings.1}'
and 'parent' of 'org.xtext.example.mydsl.myDsl.impl.GreetingImpl@60304b{platform:/resource/models/my.mydsl#//@greetings.0}'
do not refer to each other
Comment 1 Moritz Eysholdt CLA 2010-10-27 20:02:19 EDT
(In reply to comment #0)
> When importing a model, bidirectional references require concrete syntax on
> both ends, which is actually duplication from the user's point of view. It
> would be great if the opposite reference would be automatically derived.

EMF automatically sets the value of an EReference's opposite's EReference. Could you say something about why this is not working in your case?

Furthermore, if you want to serialize a model the TransientValueService can be customized to avoid serializing the opposite EReference.
Comment 2 Sven Efftinge CLA 2010-10-29 02:55:49 EDT
Dennis,

please see the following bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=282486

*** This bug has been marked as a duplicate of bug 282486 ***