Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » No inherited Attributes in ecore2ecore
No inherited Attributes in ecore2ecore [message #521666] Thu, 18 March 2010 12:54 Go to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
Hi there,

Hope I'm in the right forum.

I have a problem with ecore2ecore.

First of all, I would very much like to have a uml2-2-uml2 version, but that's not the issue.

I have a large International Information model to which I wan't to map a local datamodel.
The information model has many cases of inheritance, but in the 'Output Ecore' tab I only get the inheritance Class.
I wan't to map to the inherited ATTRIBUTES though, and they are not visible.

How can I resolve this??!??

Best Regards,

Mobius
Re: No inherited Attributes in ecore2ecore [message #521684 is a reply to message #521666] Thu, 18 March 2010 13:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

Include the closure of all the EPackages you're mapping so that all the
needed things are visible. If you look at the Ecore2Ecore model,
you'll see it's rather trivial; it would be easy to duplicate for doing
direct UML mapping. The editor is rather trivial as well...


Mobius wrote:
> Hi there,
>
> Hope I'm in the right forum.
>
> I have a problem with ecore2ecore.
>
> First of all, I would very much like to have a uml2-2-uml2 version,
> but that's not the issue.
>
> I have a large International Information model to which I wan't to map
> a local datamodel.
> The information model has many cases of inheritance, but in the
> 'Output Ecore' tab I only get the inheritance Class.
> I wan't to map to the inherited ATTRIBUTES though, and they are not
> visible.
>
> How can I resolve this??!??
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No inherited Attributes in ecore2ecore [message #521703 is a reply to message #521666] Thu, 18 March 2010 14:28 Go to previous messageGo to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
Ed,

Sounds promising, but can you please add some detail?

Where do I do these things?

Best Regards,

Mobius
Re: No inherited Attributes in ecore2ecore [message #521715 is a reply to message #521703] Thu, 18 March 2010 14:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

When you create the ecore2ecore mapping file you have the option to
select more than one output model. Once the mapping file exists, there
are toolbar buttons for adding root objects to either the input or output.


Mobius wrote:
> Ed,
>
> Sounds promising, but can you please add some detail?
>
> Where do I do these things?
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No inherited Attributes in ecore2ecore [message #521907 is a reply to message #521666] Fri, 19 March 2010 09:13 Go to previous messageGo to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member

Ed,

That's not what I mean.

When I have a generalization on a class, I wan't to be able to see the inherited properties ( the properties of the parant class) in order to map to these properties through the child class.
E.g. Class1, prop1
Class2, generalization to Class1 ( so Class1 is parent of Class2).
I want to map to Class2.prop1.

In Class2 prop1 is not visible for mapping.

Best Regards,

Mobius
Re: No inherited Attributes in ecore2ecore [message #521932 is a reply to message #521907] Fri, 19 March 2010 10:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

Well yes, that's just how it works. The tree view doesn't show the same
feature more than once, just in the class that defines it. What else can
I say?


Mobius wrote:
>
> Ed,
>
> That's not what I mean.
>
> When I have a generalization on a class, I wan't to be able to see the
> inherited properties ( the properties of the parant class) in order to
> map to these properties through the child class.
> E.g. Class1, prop1
> Class2, generalization to Class1 ( so Class1 is parent of Class2).
> I want to map to Class2.prop1.
>
> In Class2 prop1 is not visible for mapping.
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No inherited Attributes in ecore2ecore [message #622341 is a reply to message #521666] Thu, 18 March 2010 13:53 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

Include the closure of all the EPackages you're mapping so that all the
needed things are visible. If you look at the Ecore2Ecore model,
you'll see it's rather trivial; it would be easy to duplicate for doing
direct UML mapping. The editor is rather trivial as well...


Mobius wrote:
> Hi there,
>
> Hope I'm in the right forum.
>
> I have a problem with ecore2ecore.
>
> First of all, I would very much like to have a uml2-2-uml2 version,
> but that's not the issue.
>
> I have a large International Information model to which I wan't to map
> a local datamodel.
> The information model has many cases of inheritance, but in the
> 'Output Ecore' tab I only get the inheritance Class.
> I wan't to map to the inherited ATTRIBUTES though, and they are not
> visible.
>
> How can I resolve this??!??
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No inherited Attributes in ecore2ecore [message #622342 is a reply to message #521666] Thu, 18 March 2010 14:28 Go to previous message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
Ed,

Sounds promising, but can you please add some detail?

Where do I do these things?

Best Regards,

Mobius
Re: No inherited Attributes in ecore2ecore [message #622343 is a reply to message #622342] Thu, 18 March 2010 14:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

When you create the ecore2ecore mapping file you have the option to
select more than one output model. Once the mapping file exists, there
are toolbar buttons for adding root objects to either the input or output.


Mobius wrote:
> Ed,
>
> Sounds promising, but can you please add some detail?
>
> Where do I do these things?
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No inherited Attributes in ecore2ecore [message #622347 is a reply to message #521666] Fri, 19 March 2010 09:13 Go to previous message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
Ed,

That's not what I mean.

When I have a generalization on a class, I wan't to be able to see the inherited properties ( the properties of the parant class) in order to map to these properties through the child class.
E.g. Class1, prop1
Class2, generalization to Class1 ( so Class1 is parent of Class2).
I want to map to Class2.prop1.

In Class2 prop1 is not visible for mapping.

Best Regards,

Mobius
Re: No inherited Attributes in ecore2ecore [message #622348 is a reply to message #521907] Fri, 19 March 2010 10:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mobius,

Well yes, that's just how it works. The tree view doesn't show the same
feature more than once, just in the class that defines it. What else can
I say?


Mobius wrote:
>
> Ed,
>
> That's not what I mean.
>
> When I have a generalization on a class, I wan't to be able to see the
> inherited properties ( the properties of the parant class) in order to
> map to these properties through the child class.
> E.g. Class1, prop1
> Class2, generalization to Class1 ( so Class1 is parent of Class2).
> I want to map to Class2.prop1.
>
> In Class2 prop1 is not visible for mapping.
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:No inherited Attributes in ecore2ecore
Next Topic:Ecore property definition list
Goto Forum:
  


Current Time: Thu Apr 25 03:52:07 GMT 2024

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

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

Back to the top