Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Containment Reference as Edge(Containment Reference as Edge)
Containment Reference as Edge [message #1719716] Mon, 11 January 2016 16:31 Go to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi,

I'm currently defining the visualization of a metamodel, with this structure.

index.php/fa/24584/0/

Architecture -> Root
Component ->Node
Component.ports ->Link
Ports-> Node

The problem arises when I try to create a Port using the palette, because we do not know in which container (Component) the Port should be stored. I could not find a solution or an example. Thanks for any help!!

Cheers,
Anthony
  • Attachment: example.png
    (Size: 5.99KB, Downloaded 390 times)
Re: Containment Reference as Edge [message #1720092 is a reply to message #1719716] Thu, 14 January 2016 10:41 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hi,

If you want to visualize a metamodel, I recommand that you install
(https://www.eclipse.org/ecoretools/).

I think that in your metamodel you should have a non-containing
reference from Port to itself. Then, your edge creation tool should have
an operation (create instance) creating a Port in the source Component,
another one to create a Port in the target Component, and finally add a
reference to the "target" Port in the "source" Port.

Regards,
Steve


Le 11/01/2016 17:31, Anthony Garmendia a écrit :
> Hi,
>
> I'm currently defining the visualization of a metamodel, with this structure.
>
>
>
> Architecture -> Root
> Component ->Node
> Component.ports ->Link
> Ports-> Node
>
> The problem arises when I try to create a Port using the palette, because we do not know in which container (Component) the Port should be stored. I could not find a solution or an example. Thanks for any help!!
>
> Cheers,
> Anthony
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Containment Reference as Edge [message #1721557 is a reply to message #1720092] Thu, 28 January 2016 10:08 Go to previous messageGo to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi,

Thanks for the reply. I still do not understand why I have to add a non-containing reference from Port to itself.

With this metamodel, I have created this simple model tool I've attached below and this is an example Diagram(Architecture.png).

I have been able to create a Port when I create the edge, but to that I have to make a clic in a Component(source) and after that I have to click in a Port(target). After that, I create a different Port to do the relationship. I would like to find a different way, if that is possible, to do that, in which I did not have to click to a port when in fact I want to create another one. Maybe clicking on the diagram or with just a simple click on the Component I think would be better. I attached the project if you want to have a look, hope you can help me.

Cheers,
Anthony




[Updated on: Thu, 28 January 2016 10:11]

Report message to a moderator

Re: Containment Reference as Edge [message #1721563 is a reply to message #1721557] Thu, 28 January 2016 10:37 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 28/01/2016 11:08, Anthony Garmendia a écrit :
> Hi,
Hi,
>
> Thanks for the reply. I still do not understand why I have to add a non-containing reference from Port to itself.
>
> With this metamodel, I have created this simple model tool I've attached below and this is an example Diagram.
>
>
>
> I have been able to create a Port when I create the edge, but to that I have to make a clic in a Component(source) and after that I have to click in a Port(target). After that, I create a different Port to do the relationship. I would like to find a different way, if that is possible, to do that, in which I did not have to click to a port when in fact I want to create another one. Maybe clicking on the diagram or with just a simple click on the Component I think would be better. I attached the project if you want to have a look, hope you can help me.
I completed your VSM with a new tool "Port with edge" that made what you
want (I think). This is a Node Creation tool, that uses the "extra
mappings" property to allow to click on the Component to create the Port.
>
> Cheers,
> Anthony
>

Regards,

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Containment Reference as Edge [message #1721570 is a reply to message #1721563] Thu, 28 January 2016 11:06 Go to previous message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi,

Thanks! that's exactly what I want.

Cheers,
Anthony
Previous Topic:Display options for CrossTables
Next Topic:Can't set SVG files as palette icons
Goto Forum:
  


Current Time: Thu Apr 25 08:54:58 GMT 2024

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

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

Back to the top