|Re: Avoiding multiple representations of an element in diagram [message #1831756 is a reply to message #1831138]
||Fri, 28 August 2020 07:56
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
Hi Avi, |
One way to have a possibility to display all elements or only the one corresponding to isWrapped=true would be to use filters: you might have a "all boxes" mapping on your default layer and then create a mapping based filter to handle the visibility of your elements. Then the user would use the filter tabbar item (the one next to the layer selection item) to select if he wants to enable a filter.
Another possibility would be to define a Wrapped Box mapping in the default layer (with the check on the wrapped attribute put in the semantic candidate expression) and all elements layer with a mapping import (same kind of mapping than the Wrapped Box mapping) referencing the Wrapped Box mapping which would have the semantic candidates expression without the wrapped attribute filter. Then Sirius will manage both mapping and will be able to keep the same diagram elements for "boxes" which corresponds to both layers. See https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#mapping_imports
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
[Updated on: Fri, 28 August 2020 07:56]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01755 seconds