extending the ecore [message #545101] |
Tue, 06 July 2010 11:56  |
Eclipse User |
|
|
|
Hi All,
I have an usecase where i create my ecore file from an everchanding xsd.But then i create my own EClasses on the ecore for some of my requirements and generate the code.
Now if i reload the model with the changed xsd which does not have my changes, my changes are actually lost.Is there someway to persist my ecore changes and then to apply on the original ecore file or some mechanism such that my changes on the ecore are not lost.?
Thanks and Regards,
Saurav
|
|
|
|
|
|
Re: extending the ecore [message #545178 is a reply to message #545130] |
Tue, 06 July 2010 19:17  |
Eclipse User |
|
|
|
Saurav,
No, there isn't something to record the delta and reapply it.
saurav wrote:
> Thanks Ed and Edward for your valuable comments.
>
> Yes i could see that the suggestion given by Ed will be useful where i
> keep referring the base schema from my customized one and importing
> the customized schema.
>
> I was just wondering if ecore tools have some facility where the
> changes could be cached or something like that ?..
>
> cheers,
> Saurav
|
|
|
Re: extending the ecore [message #623044 is a reply to message #545101] |
Tue, 06 July 2010 12:04  |
Eclipse User |
|
|
|
Hi Saurav
This sounds like the same problem we have with the OCL console
evaluating over a Sample Reflective Ecore Editor maintained model
while its meta-model is changed by e.g. the Sample Ecore Editor.
We hope to work towards resolving it just in time for Indigo.
Regards
Ed Willink
On 06/07/2010 16:56, saurav wrote:
> Hi All,
>
> I have an usecase where i create my ecore file from an everchanding
> xsd.But then i create my own EClasses on the ecore for some of my
> requirements and generate the code.
>
> Now if i reload the model with the changed xsd which does not have my
> changes, my changes are actually lost.Is there someway to persist my
> ecore changes and then to apply on the original ecore file or some
> mechanism such that my changes on the ecore are not lost.?
>
> Thanks and Regards,
> Saurav
|
|
|
Re: extending the ecore [message #623045 is a reply to message #545108] |
Tue, 06 July 2010 13:34  |
Eclipse User |
|
|
|
Guys,
Comments below.
Ed Willink wrote:
> Hi Saurav
>
> This sounds like the same problem we have with the OCL console
> evaluating over a Sample Reflective Ecore Editor maintained model
> while its meta-model is changed by e.g. the Sample Ecore Editor.
No, it sounds like he's modifying a .ecore instance produced from and
XSD and then wanting to produce that *.ecore instance again without
losing his changes. I see no mention of instances of that model needing
to change on the fly while the model itself changes.
>
> We hope to work towards resolving it just in time for Indigo.
>
> Regards
>
> Ed Willink
>
> On 06/07/2010 16:56, saurav wrote:
>> Hi All,
>>
>> I have an usecase where i create my ecore file from an everchanding
>> xsd.But then i create my own EClasses on the ecore for some of my
>> requirements and generate the code.
>>
>> Now if i reload the model with the changed xsd which does not have my
>> changes, my changes are actually lost.Is there someway to persist my
>> ecore changes and then to apply on the original ecore file or some
>> mechanism such that my changes on the ecore are not lost.?
How about making your changes in an XML Schema that includes the other
XML Schema. Then you can reimport that schema to pick up your unchanged
additions along with the changed base; of course you'll be able to
change either schema and pick up the changes from either. If you want
to see what your additions look like when expresses as an XML Schema,
try exporting your model to XML Schema...
>>
>> Thanks and Regards,
>> Saurav
>
|
|
|
Re: extending the ecore [message #623046 is a reply to message #545101] |
Tue, 06 July 2010 13:53  |
Eclipse User |
|
|
|
Thanks Ed and Edward for your valuable comments.
Yes i could see that the suggestion given by Ed will be useful where i keep referring the base schema from my customized one and importing the customized schema.
I was just wondering if ecore tools have some facility where the changes could be cached or something like that ?..
cheers,
Saurav
|
|
|
Re: extending the ecore [message #623047 is a reply to message #623046] |
Tue, 06 July 2010 19:17  |
Eclipse User |
|
|
|
Saurav,
No, there isn't something to record the delta and reapply it.
saurav wrote:
> Thanks Ed and Edward for your valuable comments.
>
> Yes i could see that the suggestion given by Ed will be useful where i
> keep referring the base schema from my customized one and importing
> the customized schema.
>
> I was just wondering if ecore tools have some facility where the
> changes could be cached or something like that ?..
>
> cheers,
> Saurav
|
|
|
Powered by
FUDForum. Page generated in 0.09889 seconds