Reusing Edges with new Nodes [message #1514732] |
Wed, 17 December 2014 14:57 |
Eduardo Silva Messages: 12 Registered: September 2014 |
Junior Member |
|
|
Greetings,
I am trying to extend an existing tool in Sirius. I have access to the .odesign file and to the metamodel of the language that was previously implemented using the framework (lets call it Language A).
The new language I am defining (Language B) is an extension of Language A, thus I started by extending the metamodel, this step was just fine, no issues during it.
However, now I started defining the .odesign file for Language B, I choose to extend the .odesign file that was used in Language A (I believe it will be easier this way) and I have a few questions.
I created a new Viewpoint and diagrams, this new diagrams uses the elements of Language B, which extends Language A. I succesfuly reused a few elements of Language A that I need, but I want to reuse the existing edges.
For instance, in Language A there is a Node called "Goal", which has an Edge "Cooperate" connecting 2 Goals.
In Language B, there is a Node "EspecificGoal", which extend "Goal". I want to reuse the Edge Cooperate, without changing the original one (if I change the original one it is not reuse, at all).
Is there any way of doing this?
[Updated on: Wed, 17 December 2014 14:59] Report message to a moderator
|
|
|
Re: Reusing Edges with new Nodes [message #1515974 is a reply to message #1514732] |
Thu, 18 December 2014 14:54 |
|
Hi,
If "EspecificGoal" reuses (as a mapping import) the "Goal" mapping, the
only way I see is to use an Edge mapping import. However, this kind of
import is very limited: the only thing you can do is define conditional
styles.
> Greetings,
>
> I am trying to extend an extending tool in Sirius. I have access to the
> .odesign file and to the metamodel of the language that was previously
> implemented using the framework (lets call it Language A).
>
> The new language I am defining (Language B) is an extension of Language
> A, thus I started by extending the metamodel, this step was just fine,
> no issues during it.
>
> However, now I started defining the .odesign file for Language B, I
> choose to extend the .odesign file that was used in Language A, I
> believe it will be easier this way.
>
> I created a new Viewpoint and diagrams, this new diagrams uses the
> elements of Language B, which extends Language A. I succesfuly reused a
> few elements of Language A that I need, but I want to reuse the existing
> edges, among the new elements.
>
> For instance, in Language A there is a Node called "Goal", which has an
> Edge "Cooperate" connecting 2 Goals. In Language B, there is a Node
> "EspecificGoal", which extend "Goal". I want to reuse the Edge
> Cooperate, without changing the original one (if I change the original
> one it is not reuse, at all).
>
> Is there any way of doing this?
Regards,
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03419 seconds