Skip to main content



      Home
Home » Eclipse Projects » Sirius » Diagram extension with edge pointing to any model element
Diagram extension with edge pointing to any model element [message #1732908] Sun, 22 May 2016 19:18 Go to next message
Eclipse UserFriend
Hi,

I have a model as shown in the following picture:

index.php/fa/25982/0/

My goal is to develop a diagram extension which allows to attach documentation texts to existing model elements.

Providing an additional layer and a node for editing the documentation text is easy, it is just a rectangle shape with text in it. But I am struggling with defining an edge (named DocLink in the semantic model) that connects the documentation node with any existing model element. More precisely, I do not know how to configure the target mapping of the edge since I cannot select a specific mapping; the target should be any node of the diagram.

Is there some kind of "base node mapping" which matches all elements in a diagram?

I know that there already exist "Note" and "Note Attachment", but I want to achieve this with a semantic resource for various reasons.

Thanks,
Michael
  • Attachment: model.png
    (Size: 35.52KB, Downloaded 321 times)
Re: Diagram extension with edge pointing to any model element [message #1733585 is a reply to message #1732908] Mon, 30 May 2016 05:59 Go to previous message
Eclipse UserFriend
Le 23/05/2016 à 01:18, Michael Szvetits a écrit :
> Hi,
>

Hi,


> I have a model as shown in the following picture:
>
>
>
> My goal is to develop a diagram extension which allows to attach documentation texts to existing model elements.
>
> Providing an additional layer and a node for editing the documentation text is easy, it is just a rectangle shape with text in it. But I am struggling with defining an edge (named DocLink in the semantic model) that connects the documentation node with any existing model element. More precisely, I do not know how to configure the target mapping of the edge since I cannot select a specific mapping; the target should be any node of the diagram.
>
> Is there some kind of "base node mapping" which matches all elements in a diagram?

No way to do that. Currently, you must select all node mappings in the
"Target Mapping" list of your edge mapping DocLink.
>
> I know that there already exist "Note" and "Note Attachment", but I want to achieve this with a semantic resource for various reasons.
>
> Thanks,
> Michael
>

Regards,

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Get the view resulting from the "Create Instance" instruction
Next Topic:Sirius Product
Goto Forum:
  


Current Time: Tue Apr 15 05:39:10 EDT 2025

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

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

Back to the top