Skip to main content



      Home
Home » Eclipse Projects » Sirius » Showing just one edge out of many edges(Showing just one edge out of many edges)
Showing just one edge out of many edges [message #1802606] Tue, 12 February 2019 12:14 Go to next message
Eclipse UserFriend
Hello,
I am writing a traceability tool where cells in a table are derived from cells in other tables.
I can show all the traceability with edges in Sirius, but the diagram becomes very messy when I show ALL the edges , as shown in the attached image [showOneEdge.png]
I would like to show just the edges for a single selected table cell (like the one I have highlighted in blue in the image) Is there a way to do this?
I considered that one solution may be to show all the edges and then make a mapping filter with View Condition Expression that hides all edges not connected to the selected cell, is it possible to do this?
Re: Showing just one edge out of many edges [message #1802608 is a reply to message #1802606] Tue, 12 February 2019 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Maybe I need to use the 'candidate mappings' for a DNode?
Re: Showing just one edge out of many edges [message #1802647 is a reply to message #1802606] Wed, 13 February 2019 04:29 Go to previous messageGo to next message
Eclipse UserFriend
Neil Mackenzie wrote on Tue, 12 February 2019 18:14

I considered that one solution may be to show all the edges and then make a mapping filter with View Condition Expression that hides all edges not connected to the selected cell, is it possible to do this?


It's not possible directly because in the expressions defining the mapping or filters you do not have access to the selection (and even if they had, they would not be refreshed/recomputed on every selection change). However you can probably create a custom action (using the standard Eclipse mechanisms) that could be invoked on a cell, which would programmatically hide all the irrelevant edges on the diagram by invoking org.eclipse.sirius.diagram.tools.api.command.view.HideDDiagramElement.
Re: Showing just one edge out of many edges [message #1802649 is a reply to message #1802647] Wed, 13 February 2019 04:45 Go to previous message
Eclipse UserFriend
Thanks for the speedy response. That is very useful.
Previous Topic:Problem with converting to maven project
Next Topic:Sirius table to excel tables
Goto Forum:
  


Current Time: Wed Jul 23 08:41:59 EDT 2025

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

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

Back to the top