Problem serializing EDataType [message #923747] |
Wed, 26 September 2012 02:50  |
Eclipse User |
|
|
|
I created an ecore mode from scratch via the Ecore Model Editor and generated the model, edit, and editor code using the genmodel.
However, if I use the generated editor to create features, the eTypes are always changed to "ecore:EClass" when I save the resource.
I need this (which I am now forced to add manually):
<eType xsi:type="ecore:EDataType" href="platform:/plugin/org.eclipse.xyz/model/thrusterConfig.ecore#//ThrusterSet"/>
But when I save the resource with the generated editor, then it is changed to this:
<eType xsi:type="ecore:EClass" href="platform:/plugin/org.eclipse.xyz/model/thrusterConfig.ecore#//ThrusterSet"/>
Any suggestion will be greatly appreciated!
[Updated on: Wed, 26 September 2012 02:50] by Moderator
|
|
|
Re: Problem serializing EData [message #923771 is a reply to message #923747] |
Wed, 26 September 2012 03:21   |
Eclipse User |
|
|
|
AJ,
Comments below.
On 26/09/2012 8:50 AM, AJ Ben wrote:
> I created an ecore mode from scratch via the Ecore Model Editor and
> generated the model, edit, and editor code using the genmodel.
>
> However, if I use the generated editor to create features, the eTypes
> are always changed to "ecore:EClass" when I save the resource.
Sorry I don't understand how the generated editor can be changing your
Ecore model... I imagine your generated editor edits your instances,
not Ecore models...
>
> I need this (which I am now forced to add manually):
>
> <eType xsi:type="ecore:EDataType"
> href="platform:/plugin/org.eclipse.xyz/model/thrusterConfig.ecore#//ThrusterSet"/>
>
> But when I save the resource with the generated editor, then it is
> changed to this:
>
> <eType xsi:type="ecore:EClass"
> href="platform:/plugin/org.eclipse.xyz/model/thrusterConfig.ecore#//ThrusterSet"/>
So is Thruster an EClass or an EDataType? Is this contained within an
EAttribute or an EReference? Is your thrusterConfig model free of
validation errors? I.e., you don't have more than one classifier with
the same name?
>
>
> Any suggestion will be greatly appreciated!
|
|
|
|
Powered by
FUDForum. Page generated in 0.02631 seconds