Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Edapt: How to specify namespace URI for different versions of a meta-model
Edapt: How to specify namespace URI for different versions of a meta-model [message #776540] Sun, 08 January 2012 18:09 Go to next message
Elvis Dowson is currently offline Elvis DowsonFriend
Messages: 65
Registered: December 2011
Member
Hi,
I was reading the Edapt tutorial

http://www.eclipse.org/edapt/libraryexample.php

and was wondering how you can specify a different namespace URI, to distinguish between different versions of my EMF meta-model?

What are the situations in which I would

a. need a different namespace URI ?

b. choose to keep the same namespace URI ?

Elvis Dowson
Re: Edapt: How to specify namespace URI for different versions of a meta-model [message #777250 is a reply to message #776540] Tue, 10 January 2012 06:06 Go to previous message
Markus Herrmannsdoerfer is currently offline Markus HerrmannsdoerferFriend
Messages: 50
Registered: July 2009
Member
Hi Elvis,

in the tutorial, I write the following text:

"Edapt automatically prompts the user through a dialog, whether the
namespace URI should be adapted. Since in EMF the namespace URI is used
for recognizing the metamodel version, the adaptation should be
performed in most cases. By changing the namespace URI for new releases,
Edapt can automatically detect the metamodel version of models and
migrate them suitably. Of course, there are also cases where one does
not want to adapt the namespace URI. Then, the user must, however, care
for the recognition of the metamodel version themselves."

So the idea is to change the namespace URI whenever you need to perform
a migration. However, you could also be more strict and say that you
want to change the namespace URI whenever you change the metamodel to
know with which metamodel version your model was build.
Does that answer your question?
Cheers,

Markus


Am 08.01.2012 19:09, schrieb Elvis Dowson:
> Hi,
> I was reading the Edapt tutorial
> http://www.eclipse.org/edapt/libraryexample.php
>
> and was wondering how you can specify a different namespace URI, to
> distinguish between different versions of my EMF meta-model?
>
> What are the situations in which I would
> a. need a different namespace URI ?
>
> b. choose to keep the same namespace URI ?
>
> Elvis Dowson
Previous Topic:child , EList , containment
Next Topic:[Texo] Generation produces only *ModelFactory.java and *ModelPackage.java
Goto Forum:
  


Current Time: Thu Apr 25 00:39:10 GMT 2024

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

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

Back to the top