Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] Model Migration using Edapt project
[EMFStore] Model Migration using Edapt project [message #1309084] Tue, 22 April 2014 13:05 Go to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello There

I was playing with the ECP Example MakeItHappen.
I created a User and entered the mandatory fields for User.
Commited the changes.

Then modified my ecore to delete gender from the ecore and change
firstName to name.

After running, my firstName was missing. Fair Enough.
But i expected Edapt Project to help me in Model Migration.
Did i do anything wrong or Edapt is no longer supported.

Regards
Malai
Re: [EMFStore] Model Migration using Edapt project [message #1309244 is a reply to message #1309084] Tue, 22 April 2014 15:18 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 22-04-14 15:05, Annamalai wrote:
> Hello There
>
> I was playing with the ECP Example MakeItHappen.
> I created a User and entered the mandatory fields for User.
> Commited the changes.
>
> Then modified my ecore to delete gender from the ecore and change
> firstName to name.
>
> After running, my firstName was missing. Fair Enough.
> But i expected Edapt Project to help me in Model Migration.
> Did i do anything wrong or Edapt is no longer supported.
I am not sure in relation to EMFStore, but Edapt as such is still
supported (Although limited).
>
> Regards
> Malai
>
>
Re: [EMFStore] Model Migration using Edapt project [message #1310467 is a reply to message #1309084] Wed, 23 April 2014 07:46 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Malai,

the current EMFStore release does not contain the Edapt integration,
since there is no Edapt release for Kepler currently. However in the
source code repository the integration is still existing. If you want to
play with it you would need to check out the EMFStore source code:
http://eclipse.org/emfstore/gettinginvolved.html
The Edapt support is in the plugin
org.eclipse.emf.emfstore.migration.edapt in the repository
https://git.eclipse.org/gitroot/emf-store/org.eclipse.emf.emfstore.other.git

Cheers,
Maximilian

Am 22.04.2014 15:05, schrieb Annamalai:
> Hello There
>
> I was playing with the ECP Example MakeItHappen.
> I created a User and entered the mandatory fields for User.
> Commited the changes.
>
> Then modified my ecore to delete gender from the ecore and change
> firstName to name.
>
> After running, my firstName was missing. Fair Enough.
> But i expected Edapt Project to help me in Model Migration.
> Did i do anything wrong or Edapt is no longer supported.
>
> Regards
> Malai
>
>


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [EMFStore] Model Migration using Edapt project [message #1312581 is a reply to message #1310467] Thu, 24 April 2014 11:29 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello Maximilian

Do you have an example telling us how to use EDapt in makeithappen ECP
example ? I took your makeithappen and changed User : firstName to name.
And created a history for the same and released it.

But now not sure how to use it with ECP coz i am not prompted with any
change or any need to update as explained in EDapt.

I have also downloaded edapt migration plugin from emfstore as provided
in the link below.

A few pointers on how i can get it working would help and i will be
happy to contribute an article or an example for the same.

Regards
Malai

On 4/23/2014 1:16 PM, Maximilian Koegel wrote:
> Hi Malai,
>
> the current EMFStore release does not contain the Edapt integration,
> since there is no Edapt release for Kepler currently. However in the
> source code repository the integration is still existing. If you want to
> play with it you would need to check out the EMFStore source code:
> http://eclipse.org/emfstore/gettinginvolved.html
> The Edapt support is in the plugin
> org.eclipse.emf.emfstore.migration.edapt in the repository
> https://git.eclipse.org/gitroot/emf-store/org.eclipse.emf.emfstore.other.git
>
> Cheers,
> Maximilian
>
> Am 22.04.2014 15:05, schrieb Annamalai:
>> Hello There
>>
>> I was playing with the ECP Example MakeItHappen.
>> I created a User and entered the mandatory fields for User.
>> Commited the changes.
>>
>> Then modified my ecore to delete gender from the ecore and change
>> firstName to name.
>>
>> After running, my firstName was missing. Fair Enough.
>> But i expected Edapt Project to help me in Model Migration.
>> Did i do anything wrong or Edapt is no longer supported.
>>
>> Regards
>> Malai
>>
>>
>
>
Re: [EMFStore] Model Migration using Edapt project [message #1314276 is a reply to message #1312581] Fri, 25 April 2014 09:09 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Malai,

sorry, I do not have a tutorial for that. To get it running you need to
create a migrator for your model with Edapt as described in the Edapt
documentation. Furthermore you need to assign a model version using the
org.eclipse.emf.emfstore.common.modelVersion extension point.
This will describe the model version your code conforms to.

Cheers,
Maximilian

Am 24.04.2014 13:29, schrieb Annamalai:
> Hello Maximilian
>
> Do you have an example telling us how to use EDapt in makeithappen ECP
> example ? I took your makeithappen and changed User : firstName to name.
> And created a history for the same and released it.
>
> But now not sure how to use it with ECP coz i am not prompted with any
> change or any need to update as explained in EDapt.
>
> I have also downloaded edapt migration plugin from emfstore as provided
> in the link below.
>
> A few pointers on how i can get it working would help and i will be
> happy to contribute an article or an example for the same.
>
> Regards
> Malai
>
> On 4/23/2014 1:16 PM, Maximilian Koegel wrote:
>> Hi Malai,
>>
>> the current EMFStore release does not contain the Edapt integration,
>> since there is no Edapt release for Kepler currently. However in the
>> source code repository the integration is still existing. If you want to
>> play with it you would need to check out the EMFStore source code:
>> http://eclipse.org/emfstore/gettinginvolved.html
>> The Edapt support is in the plugin
>> org.eclipse.emf.emfstore.migration.edapt in the repository
>> https://git.eclipse.org/gitroot/emf-store/org.eclipse.emf.emfstore.other.git
>>
>>
>> Cheers,
>> Maximilian
>>
>> Am 22.04.2014 15:05, schrieb Annamalai:
>>> Hello There
>>>
>>> I was playing with the ECP Example MakeItHappen.
>>> I created a User and entered the mandatory fields for User.
>>> Commited the changes.
>>>
>>> Then modified my ecore to delete gender from the ecore and change
>>> firstName to name.
>>>
>>> After running, my firstName was missing. Fair Enough.
>>> But i expected Edapt Project to help me in Model Migration.
>>> Did i do anything wrong or Edapt is no longer supported.
>>>
>>> Regards
>>> Malai
>>>
>>>
>>
>>
>


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [Edapt] Model Migration using Edapt project [message #1415633 is a reply to message #1309084] Wed, 03 September 2014 08:25 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hi There

I am adding some more information into what i had asked earlier.
As mentioned below i was playing with ECP Example MakeItHappen.
So i ran the ECP e3 Demo and performed the following steps
1. Created a Workspace Project
2. Created a User and filled in the values.
3. Saved the Changes.
Now decided to change my Ecore, rename firstName to name.
So i followed the following steps
1. Created a History File
2. Released the current ecore.
3. Made changes to User EClass by renaming the firstName to name. This
was recorded in the History File.
4. Released this newly updated History File.
5. Updation of Label : Replaced 1.0 with 2.0 in the Dialog that opened up.
6. Regenerated by Model and Edit Plugins.
7. Registered the History File in the plugin.xml of the model
8. Ran the ECP e3 Demo Product.
9. The project that i created earlier couldnt be expanded and didnt
contain the User that i had created.

Not sure what i am i missing now. In my runconfiguration i included the
edapt.runtime.feature and i assume that the editor of ECP is already
looking for Migrators if there are any that are contributed to the
extension point of migrators provided by edapt.

Regards
Malai

On 4/22/2014 6:35 PM, Annamalai wrote:
> Hello There
>
> I was playing with the ECP Example MakeItHappen.
> I created a User and entered the mandatory fields for User.
> Commited the changes.
>
> Then modified my ecore to delete gender from the ecore and change
> firstName to name.
>
> After running, my firstName was missing. Fair Enough.
> But i expected Edapt Project to help me in Model Migration.
> Did i do anything wrong or Edapt is no longer supported.
>
> Regards
> Malai
>
>
Re: [Edapt] Model Migration using Edapt project [message #1417540 is a reply to message #1415633] Fri, 05 September 2014 17:12 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Malai,

the answer is simple, ECP does not look for the migrators and does not
automatically apply them. This requires manual code to trigger Edapt as
it is.

Cheers,
Maximilian


Am 03.09.2014 10:25, schrieb Annamalai:
> Hi There
>
> I am adding some more information into what i had asked earlier.
> As mentioned below i was playing with ECP Example MakeItHappen.
> So i ran the ECP e3 Demo and performed the following steps
> 1. Created a Workspace Project
> 2. Created a User and filled in the values.
> 3. Saved the Changes.
> Now decided to change my Ecore, rename firstName to name.
> So i followed the following steps
> 1. Created a History File
> 2. Released the current ecore.
> 3. Made changes to User EClass by renaming the firstName to name. This
> was recorded in the History File.
> 4. Released this newly updated History File.
> 5. Updation of Label : Replaced 1.0 with 2.0 in the Dialog that opened up.
> 6. Regenerated by Model and Edit Plugins.
> 7. Registered the History File in the plugin.xml of the model
> 8. Ran the ECP e3 Demo Product.
> 9. The project that i created earlier couldnt be expanded and didnt
> contain the User that i had created.
>
> Not sure what i am i missing now. In my runconfiguration i included the
> edapt.runtime.feature and i assume that the editor of ECP is already
> looking for Migrators if there are any that are contributed to the
> extension point of migrators provided by edapt.
>
> Regards
> Malai
>
> On 4/22/2014 6:35 PM, Annamalai wrote:
>> Hello There
>>
>> I was playing with the ECP Example MakeItHappen.
>> I created a User and entered the mandatory fields for User.
>> Commited the changes.
>>
>> Then modified my ecore to delete gender from the ecore and change
>> firstName to name.
>>
>> After running, my firstName was missing. Fair Enough.
>> But i expected Edapt Project to help me in Model Migration.
>> Did i do anything wrong or Edapt is no longer supported.
>>
>> Regards
>> Malai
>>
>>
>


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [Edapt] Model Migration using Edapt project [message #1417862 is a reply to message #1417540] Sat, 06 September 2014 04:57 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello Max

Thanks for the information. But i am still confused on how would you
trigger the Edapt Migrators in Model Explorer. I understand i can
override the Editor thru the extension point and fill in the migrator
code. But here Model Explorer itself is not loading the tree due to the
change in the model and thus causing my model disappear.

Looking forward to some pointers on how to trigger the edapt manually in
Model Explorer.

Regards
Malai

On 9/5/2014 10:42 PM, Maximilian Koegel wrote:
> Hi Malai,
>
> the answer is simple, ECP does not look for the migrators and does not
> automatically apply them. This requires manual code to trigger Edapt as
> it is.
>
> Cheers,
> Maximilian
>
>
> Am 03.09.2014 10:25, schrieb Annamalai:
>> Hi There
>>
>> I am adding some more information into what i had asked earlier.
>> As mentioned below i was playing with ECP Example MakeItHappen.
>> So i ran the ECP e3 Demo and performed the following steps
>> 1. Created a Workspace Project
>> 2. Created a User and filled in the values.
>> 3. Saved the Changes.
>> Now decided to change my Ecore, rename firstName to name.
>> So i followed the following steps
>> 1. Created a History File
>> 2. Released the current ecore.
>> 3. Made changes to User EClass by renaming the firstName to name. This
>> was recorded in the History File.
>> 4. Released this newly updated History File.
>> 5. Updation of Label : Replaced 1.0 with 2.0 in the Dialog that opened up.
>> 6. Regenerated by Model and Edit Plugins.
>> 7. Registered the History File in the plugin.xml of the model
>> 8. Ran the ECP e3 Demo Product.
>> 9. The project that i created earlier couldnt be expanded and didnt
>> contain the User that i had created.
>>
>> Not sure what i am i missing now. In my runconfiguration i included the
>> edapt.runtime.feature and i assume that the editor of ECP is already
>> looking for Migrators if there are any that are contributed to the
>> extension point of migrators provided by edapt.
>>
>> Regards
>> Malai
>>
>> On 4/22/2014 6:35 PM, Annamalai wrote:
>>> Hello There
>>>
>>> I was playing with the ECP Example MakeItHappen.
>>> I created a User and entered the mandatory fields for User.
>>> Commited the changes.
>>>
>>> Then modified my ecore to delete gender from the ecore and change
>>> firstName to name.
>>>
>>> After running, my firstName was missing. Fair Enough.
>>> But i expected Edapt Project to help me in Model Migration.
>>> Did i do anything wrong or Edapt is no longer supported.
>>>
>>> Regards
>>> Malai
>>>
>>>
>>
>
>
Re: [Edapt] Model Migration using Edapt project [message #1419966 is a reply to message #1417862] Tue, 09 September 2014 10:01 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Annamalai,

you need to implement an ECPProvider to influence how the model for the
model explorer is loaded and to inject the migration there. You can
reuse an existing implementation of this interface.
We would appreciate a contribution for this!

Cheers,
Maximilian

Am 06.09.2014 06:57, schrieb Annamalai:
> Hello Max
>
> Thanks for the information. But i am still confused on how would you
> trigger the Edapt Migrators in Model Explorer. I understand i can
> override the Editor thru the extension point and fill in the migrator
> code. But here Model Explorer itself is not loading the tree due to the
> change in the model and thus causing my model disappear.
>
> Looking forward to some pointers on how to trigger the edapt manually in
> Model Explorer.
>
> Regards
> Malai
>
> On 9/5/2014 10:42 PM, Maximilian Koegel wrote:
>> Hi Malai,
>>
>> the answer is simple, ECP does not look for the migrators and does not
>> automatically apply them. This requires manual code to trigger Edapt as
>> it is.
>>
>> Cheers,
>> Maximilian
>>
>>
>> Am 03.09.2014 10:25, schrieb Annamalai:
>>> Hi There
>>>
>>> I am adding some more information into what i had asked earlier.
>>> As mentioned below i was playing with ECP Example MakeItHappen.
>>> So i ran the ECP e3 Demo and performed the following steps
>>> 1. Created a Workspace Project
>>> 2. Created a User and filled in the values.
>>> 3. Saved the Changes.
>>> Now decided to change my Ecore, rename firstName to name.
>>> So i followed the following steps
>>> 1. Created a History File
>>> 2. Released the current ecore.
>>> 3. Made changes to User EClass by renaming the firstName to name. This
>>> was recorded in the History File.
>>> 4. Released this newly updated History File.
>>> 5. Updation of Label : Replaced 1.0 with 2.0 in the Dialog that
>>> opened up.
>>> 6. Regenerated by Model and Edit Plugins.
>>> 7. Registered the History File in the plugin.xml of the model
>>> 8. Ran the ECP e3 Demo Product.
>>> 9. The project that i created earlier couldnt be expanded and didnt
>>> contain the User that i had created.
>>>
>>> Not sure what i am i missing now. In my runconfiguration i included the
>>> edapt.runtime.feature and i assume that the editor of ECP is already
>>> looking for Migrators if there are any that are contributed to the
>>> extension point of migrators provided by edapt.
>>>
>>> Regards
>>> Malai
>>>
>>> On 4/22/2014 6:35 PM, Annamalai wrote:
>>>> Hello There
>>>>
>>>> I was playing with the ECP Example MakeItHappen.
>>>> I created a User and entered the mandatory fields for User.
>>>> Commited the changes.
>>>>
>>>> Then modified my ecore to delete gender from the ecore and change
>>>> firstName to name.
>>>>
>>>> After running, my firstName was missing. Fair Enough.
>>>> But i expected Edapt Project to help me in Model Migration.
>>>> Did i do anything wrong or Edapt is no longer supported.
>>>>
>>>> Regards
>>>> Malai
>>>>
>>>>
>>>
>>
>>
>


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [Edapt] Model Migration using Edapt project [message #1420609 is a reply to message #1419966] Wed, 10 September 2014 08:07 Go to previous message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello Max

Will look into this and make a fix and contribute it back.
For now will raise a BUG in Bugzilla so that this feature can be tracked.

Regards
Malai

On 9/9/2014 3:31 PM, Maximilian Koegel wrote:
> Hi Annamalai,
>
> you need to implement an ECPProvider to influence how the model for the
> model explorer is loaded and to inject the migration there. You can
> reuse an existing implementation of this interface.
> We would appreciate a contribution for this!
>
> Cheers,
> Maximilian
>
> Am 06.09.2014 06:57, schrieb Annamalai:
>> Hello Max
>>
>> Thanks for the information. But i am still confused on how would you
>> trigger the Edapt Migrators in Model Explorer. I understand i can
>> override the Editor thru the extension point and fill in the migrator
>> code. But here Model Explorer itself is not loading the tree due to the
>> change in the model and thus causing my model disappear.
>>
>> Looking forward to some pointers on how to trigger the edapt manually in
>> Model Explorer.
>>
>> Regards
>> Malai
>>
>> On 9/5/2014 10:42 PM, Maximilian Koegel wrote:
>>> Hi Malai,
>>>
>>> the answer is simple, ECP does not look for the migrators and does not
>>> automatically apply them. This requires manual code to trigger Edapt as
>>> it is.
>>>
>>> Cheers,
>>> Maximilian
>>>
>>>
>>> Am 03.09.2014 10:25, schrieb Annamalai:
>>>> Hi There
>>>>
>>>> I am adding some more information into what i had asked earlier.
>>>> As mentioned below i was playing with ECP Example MakeItHappen.
>>>> So i ran the ECP e3 Demo and performed the following steps
>>>> 1. Created a Workspace Project
>>>> 2. Created a User and filled in the values.
>>>> 3. Saved the Changes.
>>>> Now decided to change my Ecore, rename firstName to name.
>>>> So i followed the following steps
>>>> 1. Created a History File
>>>> 2. Released the current ecore.
>>>> 3. Made changes to User EClass by renaming the firstName to name. This
>>>> was recorded in the History File.
>>>> 4. Released this newly updated History File.
>>>> 5. Updation of Label : Replaced 1.0 with 2.0 in the Dialog that
>>>> opened up.
>>>> 6. Regenerated by Model and Edit Plugins.
>>>> 7. Registered the History File in the plugin.xml of the model
>>>> 8. Ran the ECP e3 Demo Product.
>>>> 9. The project that i created earlier couldnt be expanded and didnt
>>>> contain the User that i had created.
>>>>
>>>> Not sure what i am i missing now. In my runconfiguration i included the
>>>> edapt.runtime.feature and i assume that the editor of ECP is already
>>>> looking for Migrators if there are any that are contributed to the
>>>> extension point of migrators provided by edapt.
>>>>
>>>> Regards
>>>> Malai
>>>>
>>>> On 4/22/2014 6:35 PM, Annamalai wrote:
>>>>> Hello There
>>>>>
>>>>> I was playing with the ECP Example MakeItHappen.
>>>>> I created a User and entered the mandatory fields for User.
>>>>> Commited the changes.
>>>>>
>>>>> Then modified my ecore to delete gender from the ecore and change
>>>>> firstName to name.
>>>>>
>>>>> After running, my firstName was missing. Fair Enough.
>>>>> But i expected Edapt Project to help me in Model Migration.
>>>>> Did i do anything wrong or Edapt is no longer supported.
>>>>>
>>>>> Regards
>>>>> Malai
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
Previous Topic:[EDAPT-ECP] Integration of Edapt with ECP
Next Topic:Call for Submissions: Modeling Symposium ECE 2014
Goto Forum:
  


Current Time: Tue Mar 19 09:31:37 GMT 2024

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

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

Back to the top