| Summary: | Cannot find compatible feature type in sealed EClass | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Karsten Thoms <karsten.thoms> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | 2.1.0 | Flags: | sebastian.zarnekow:
juno+
|
||||
| Target Milestone: | M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Karsten Thoms
For reproduction use git clone https://code.google.com/a/eclipselabs.org/p/spray/ and use tag "bug363421" As soon as you use something from the ecore.ecore which is not a EDatatype or EObject itself, you'll have to reference it via platform:/resource or platform:/plugin in your own ecore file. EDatatypes and EObject have a special role in EMF when it comes to assignability. Could you please double check whether that works? Will update the docs accordingly. Changed this accordingly
<eClassifiers xsi:type="ecore:EClass" name="MetaClass" eSuperTypes="#//SprayElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EClass"/>
</eClassifiers>
The problem markers remain.
I had to add URI maps in the workflow to map the plugin resource URIs.
The reproducing tag has been updated.
If this is not an Xtext bug, but more a user bug, we can close the ticket here and discuss a solution in the forum.
This is what we use in Xtext.ecore:
<eStructuralFeatures xsi:type="ecore:EReference" name="classifier" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EClassifier"/>
> For reproduction use
> git clone https://code.google.com/a/eclipselabs.org/p/spray/
> and use tag "bug363421"
I don't have enough credentials to clone from this location.
I can confirm that Xtext.xtext does not show these errors. Now I have tried to change the plugin URIs to platform resource URIs. No problem with generating EMF classes or run the Xtext generator, just UI problem. We have a problem with Google Code at the moment so that the pages cannot be accessed without logging in with a Google Account. Thus, I am uploading the exported files now here: http://dl.dropbox.com/u/662339/Exchange/Spray_bug363421.zip Fixed in master and maintenance Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |