Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [EMFStore] Model Migration using Edapt project
| | | |
Re: [EMFStore] Model Migration using Edapt project [message #1314276 is a reply to message #1312581] |
Fri, 25 April 2014 09:09 |
Maximilian Koegel 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 #1419966 is a reply to message #1417862] |
Tue, 09 September 2014 10:01 |
Maximilian Koegel 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 |
Annamalai Mising name 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
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Tue May 21 13:56:05 GMT 2024
Powered by FUDForum. Page generated in 0.05198 seconds
|