Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » No inherited Attributes in ecore2ecore
| | | | |
Re: No inherited Attributes in ecore2ecore [message #521932 is a reply to message #521907] |
Fri, 19 March 2010 10:55 |
Ed Merks 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 |
Ed Merks 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 #622343 is a reply to message #622342] |
Thu, 18 March 2010 14:44 |
Ed Merks 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 #622348 is a reply to message #521907] |
Fri, 19 March 2010 10:55 |
Ed Merks 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/
|
|
|
Goto Forum:
Current Time: Thu Apr 25 03:52:07 GMT 2024
Powered by FUDForum. Page generated in 0.25565 seconds
|