Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Combining parts of Edges into one.(How do i combine overlapping edges into one (horizontal /veritical tree))
icon3.gif  Combining parts of Edges into one. [message #1455497] Wed, 29 October 2014 12:40 Go to next message
Koen Staal is currently offline Koen StaalFriend
Messages: 70
Registered: October 2014
Member
Is it possible to combine edges to one edge if they have the same target?

I uploaded an image below to show what i mean.

index.php/fa/19706/0/

I know there is a "tree" option for edges, but this option combines the vertical lines only. Is there a way to combine horizontal lines aswell? or is there maybe another way to achive the result shown in the image.

The image in this link seems to manage it, but it could also be multiple lines drawn over each other.

Any help would be appreciated.
  • Attachment: example.png
    (Size: 1.21KB, Downloaded 412 times)
Re: Combining parts of Edges into one. [message #1456430 is a reply to message #1455497] Thu, 30 October 2014 10:59 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed, this feature request of tree layout, where it can be specified
if the children are displayed horizontally or vertically, has been
identified in the past, but it has not been implemented yet. It was
asked (way) before Sirius was contributed to Eclipse, and no bugzilla
(feature request) has been reported yet.

Regards,
Steve

Le 29/10/2014 13:43, Koen Staal a écrit :
> Is it possible to combine edges to one edge if they have the same target?
>
> I uploaded an image below to show what i mean.
>
>
>
> I know there is a "tree" option for edges, but this option combines the vertical lines only. Is there a way to combine horizontal lines aswell? or is there maybe another way to achive the result shown in the image.
>
> The image inhttp://www.eclipse.org/sirius/images/gallery/intelhome-1.png seems to manage it, but it could also be multiple lines drawn over each other.
>
> Any help would be appreciated.
>


--
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: Combining parts of Edges into one. [message #1456495 is a reply to message #1456430] Thu, 30 October 2014 12:26 Go to previous messageGo to next message
Koen Staal is currently offline Koen StaalFriend
Messages: 70
Registered: October 2014
Member
Steve Monnier wrote on Thu, 30 October 2014 10:59
Hello,

Indeed, this feature request of tree layout, where it can be specified
if the children are displayed horizontally or vertically, has been
identified in the past, but it has not been implemented yet. It was
asked (way) before Sirius was contributed to Eclipse, and no bugzilla
(feature request) has been reported yet.

Regards,
Steve


Thanks for your reply. The result i want is indeed very similar to a tree layout, but im not making a tree perse. If i could enabling both a horizontal and vertical tree layout of the edge in one diagram, not only one, i would be very much on my way. The tree layout however limits the line architecture somewhat.

What it basicly comes down to is; if both lines come from the same point on the diagram and go to the same target it should be only one line.

Am i able to make a feature request myself?

Maybe there is some other way, for example splitting the target up in two representations. connect both edges to one of the representation and connect both representations with a different edge. this could be an option because the target in my situation is just a channel. But it seems not possible to make multiple representations of the same object?
for example:
index.php/fa/19714/0/

all idea's are welcome

[Updated on: Thu, 30 October 2014 12:29]

Report message to a moderator

Re: Combining parts of Edges into one. [message #1456584 is a reply to message #1456495] Thu, 30 October 2014 14:01 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Le 30/10/2014 13:26, Koen Staal a écrit :
> Thanks for your reply. The result i want is indeed very similar to a tree layout, but im not making a tree perse. If i could enabling both a horizontal and vertical tree layout of the edge in one diagram, not only one, i would be very much on my way. The tree layout however limits the line architecture somewhat.
>
> What it basicly comes down to is; if both lines come from the same point on the diagram and go to the same target it can be only one line.
>
> Am i able to make a feature request myself?
What you can try is use a Ordered Tree Layout or Composite Layout (there
is a left to right option), that can be added under the Diagram
description in your VSM. This way your edges pointing the same parent
will appear as fused. Then you can define a custom layout, using an
extension point, to choose how the element are placed in the diagram .
You can check this previous post
https://www.eclipse.org/forums/index.php/mv/msg/639946/1234795/#msg_1234795
for more information on custom layout. You may not be able to define
exactly the configuration you presented, but something close.

>
> Maybe there is some other way, for example splitting the target up in two representations. connect both edges to one of the representation and connect both representations with a different edge. this could be an option because the target in my situation is just a channel. But it seems not possible to make multiple representations of the same object?
You can define as many Node/Container/Edge mapping as you want for the
same metaclass. The semantic element will be represented multiple time.
More generally, the way you define your mappings doesn't have to reflect
the structure of the metamodel.

Regards,
Steve

> for example:
>
>
> all idea's are welcome
>


--
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
Previous Topic:Multiple XMI files for the same model
Next Topic:Getting container across different resources
Goto Forum:
  


Current Time: Thu Apr 25 07:16:41 GMT 2024

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

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

Back to the top