Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » extending the ecore
extending the ecore [message #545101] Tue, 06 July 2010 15:56 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
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 #545108 is a reply to message #545101] Tue, 06 July 2010 16:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 #545126 is a reply to message #545108] Tue, 06 July 2010 17:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: extending the ecore [message #545130 is a reply to message #545101] Tue, 06 July 2010 17:53 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
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 #545178 is a reply to message #545130] Tue, 06 July 2010 23:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: extending the ecore [message #623044 is a reply to message #545101] Tue, 06 July 2010 16:04 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 17:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: extending the ecore [message #623046 is a reply to message #545101] Tue, 06 July 2010 17:53 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
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 23:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:extending the ecore
Next Topic:[EEF] Using Ecore consisting of subpackages fails
Goto Forum:
  


Current Time: Fri Mar 29 07:48:48 GMT 2024

Powered by FUDForum. Page generated in 0.02958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top