Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Adding new metamodel to mmregistry.MetamodelRegistry
[QVTo] Adding new metamodel to mmregistry.MetamodelRegistry [message #523533] Fri, 26 March 2010 12:40 Go to next message
Alexis Muller is currently offline Alexis MullerFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

Could someone tell me why it is not possible to add a metamodel to a
MetamodelRegistry ?
(org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.Metamo delRegistry)

Indeed, first time we access to this MetamodelRegistry it is loaded with
all available metamodels (using MetamodelProviders). But it is not
possible to add metamodels to this registry after that. Why? Is there Is
there a good reason for that?

Many thanks for your comments,

--
Alexis Muller
DaRT Team
INRIA
Re: [QVTo] Adding new metamodel to mmregistry.MetamodelRegistry [message #524635 is a reply to message #523533] Thu, 01 April 2010 16:13 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Alexis ,

Alexis Muller wrote:
> Hi,
>
> Could someone tell me why it is not possible to add a metamodel to a
> MetamodelRegistry ?
> (org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.Metamo delRegistry)

There's method

public void merge(MetamodelRegistry mergedRegistry) {
...
}

that can be use to alter MetamodelRegistry.

However I wonder why do you need to change MetamodelRegistry as far it's
created by IMetamodelRegistryProvider instance just in case so that
default set of models from providers is altered with additions.

>
> Indeed, first time we access to this MetamodelRegistry it is loaded with
> all available metamodels (using MetamodelProviders). But it is not
> possible to add metamodels to this registry after that. Why? Is there Is
> there a good reason for that?
>
> Many thanks for your comments,
>

Regards,
Sergey
Re: [QVTo] Adding new metamodel to mmregistry.MetamodelRegistry [message #525878 is a reply to message #524635] Thu, 08 April 2010 07:23 Go to previous messageGo to next message
Alexis Muller is currently offline Alexis MullerFriend
Messages: 13
Registered: July 2009
Junior Member
Hi Sergey,

Thanks for your answer.

On 01/04/2010 18:13, Sergey Boyko wrote:
[...]
> There's method
>
> public void merge(MetamodelRegistry mergedRegistry) {
> ...
> }
>
> that can be use to alter MetamodelRegistry.

I can't find this method with the current stable version (2.0.1v20090701
using galileo).

Should I switch to the development version to get it ?


> However I wonder why do you need to change MetamodelRegistry as far it's
> created by IMetamodelRegistryProvider instance just in case so that
> default set of models from providers is altered with additions.

Yes, this is exactly what I need to do. We adding new metamodels to
EPackage.Registry.INSTANCE. And we want to have these metamodels
available to QVT transformations.

Regards,


--
Alexis Muller
DaRT Team
INRIA
Re: [QVTo] Adding new metamodel to mmregistry.MetamodelRegistry [message #526687 is a reply to message #525878] Mon, 12 April 2010 15:01 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Alexis,

Please try QVTo 3.0.0M6 build (to be used with Eclipse 3.6 M6):
http://www.eclipse.org/downloads/download.php?file=/modeling /m2m/qvtoml/downloads/drops/3.0.0/S201003160736/m2m-qvtoml-S DK-3.0.0M6.zip

Regards,
Sergey


Alexis Muller wrote:
> Hi Sergey,
>
> Thanks for your answer.
>
> On 01/04/2010 18:13, Sergey Boyko wrote:
> [...]
>> There's method
>>
>> public void merge(MetamodelRegistry mergedRegistry) {
>> ...
>> }
>>
>> that can be use to alter MetamodelRegistry.
>
> I can't find this method with the current stable version (2.0.1v20090701
> using galileo).
>
> Should I switch to the development version to get it ?
>
>
>> However I wonder why do you need to change MetamodelRegistry as far it's
>> created by IMetamodelRegistryProvider instance just in case so that
>> default set of models from providers is altered with additions.
>
> Yes, this is exactly what I need to do. We adding new metamodels to
> EPackage.Registry.INSTANCE. And we want to have these metamodels
> available to QVT transformations.
>
> Regards,
>
>
Previous Topic:What does this line means in a XText grammar ?
Next Topic:[ATL][AML] List of heuristics
Goto Forum:
  


Current Time: Thu Oct 24 04:20:41 GMT 2019

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

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

Back to the top