Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Quick model migration beofre using Edapt or Sphinx
Quick model migration beofre using Edapt or Sphinx [message #1214190] Wed, 27 November 2013 15:32 Go to next message
Pascal Gula is currently offline Pascal GulaFriend
Messages: 5
Registered: November 2013
Junior Member
Hi,
as many of you are probably used to this topic, we need to support the automatic migration of model within our tool.
Projects like Edapt or Sphinx are providing such features, but our internal process requires the validation of them before integrating them in our tool, which need some time...
What is the best strategy to implement a quick working and integrated solution? In more detail, where are we able to intercept and transform the changes in the model with EMF?
Thanks in advance,
Pascal
Re: Quick model migration beofre using Edapt or Sphinx [message #1214455 is a reply to message #1214190] Wed, 27 November 2013 18:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Pascal,

Without details about what you mean by migration it's hard to suggest
much of anything. Often you can use things like
org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE and
post process the result of loading (perhaps using
org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RESOURCE_HANDLER).

On 27/11/2013 4:32 PM, Pascal Gula wrote:
> Hi,
> as many of you are probably used to this topic, we need to support the
> automatic migration of model within our tool.
> Projects like Edapt or Sphinx are providing such features, but our
> internal process requires the validation of them before integrating
> them in our tool, which need some time...
> What is the best strategy to implement a quick working and integrated
> solution? In more detail, where are we able to intercept and transform
> the changes in the model with EMF?
> Thanks in advance,
> Pascal
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Quick model migration beofre using Edapt or Sphinx [message #1216042 is a reply to message #1214455] Thu, 28 November 2013 09:50 Go to previous messageGo to next message
Pascal Gula is currently offline Pascal GulaFriend
Messages: 5
Registered: November 2013
Junior Member
Hi Ed,
indeed, the development of a metamodel and the according tooling leads in its lifecycle to some modifications that makes un-loadable models that have been developed with previous version of it.
For example, it is not a problem when adding attributes to some elements of the metamodel, but when renaming or suppressing some, the saved resource model won't be able to load properly. My goal is indeed to intercept in the loading process such event and post-process them to be able to load the model properly (with some know rules).
As I said, we are not able to use plug-ins developed for that purpose right now (like Edapt or Sphinx), but we need to implement a quick solution.
By the way, is there any comparison of solutions like Edapt or Sphinx or others available?
Regards,
Pascal
Re: Quick model migration beofre using Edapt or Sphinx [message #1216879 is a reply to message #1216042] Thu, 28 November 2013 17:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Pascal,

Comments below.

On 28/11/2013 10:50 AM, Pascal Gula wrote:
> Hi Ed,
> indeed, the development of a metamodel and the according tooling leads
> in its lifecycle to some modifications that makes un-loadable models
> that have been developed with previous version of it.
> For example, it is not a problem when adding attributes to some
> elements of the metamodel, but when renaming or suppressing some, the
> saved resource model won't be able to load properly.
The options I suggest help deal with that. The resource will load and
the stuff that's not recognized is recorded "on the side".
> My goal is indeed to intercept in the loading process such event and
> post-process them to be able to load the model properly (with some
> know rules).
So what I suggested is a good match for that?
> As I said, we are not able to use plug-ins developed for that purpose
> right now (like Edapt or Sphinx), but we need to implement a quick
> solution.
You'll try what I suggested?
> By the way, is there any comparison of solutions like Edapt or Sphinx
> or others available?
Not that I know of no...
> Regards,
> Pascal


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[xcore] IndexOutOfBoundsException
Next Topic:Setting Edit>Creation Icons to false causes generation of shouldComposeCreationImage in ItemProvi
Goto Forum:
  


Current Time: Fri Apr 19 03:33:40 GMT 2024

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

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

Back to the top