Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Reusing Edges with new Nodes
icon5.gif  Reusing Edges with new Nodes [message #1514732] Wed, 17 December 2014 14:57 Go to next message
Eduardo Silva is currently offline Eduardo SilvaFriend
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 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 236
Registered: August 2010
Senior Member
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
Previous Topic:How to delete edges ?
Next Topic:Xtext+Sirius: Undo (ctrl+z) on diagram does not rollback textual resource
Goto Forum:
  


Current Time: Wed Apr 01 22:13:11 GMT 2020

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

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

Back to the top