|
Re: Z-order when the diagram is first time opened [message #1852381 is a reply to message #1852379] |
Fri, 13 May 2022 06:41   |
|
Hi,
A possible solution, the simpliest I think, is to have only one mapping. What is the reason to have two mappings? If it is for style, you can have one mapping with a default style for A and a conditional style for B.
Another solution is to manage z-order of nodes. But is necessary to know Sirius in deeper (GMF nodes vs Sirius nodes), using org.eclipse.sirius.diagram.business.api.refresh.IRefreshExtension.postRefresh(DDiagram) with a org.eclipse.sirius.diagram.business.api.refresh.IRefreshExtensionProvider using extension point "org.eclipse.sirius.refreshExtensionProvider". As the documentation said, this extension point allows you to add behaviors to the refresh operations of a viewpoint. It must be used with caution.
Regards,
Laurent
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01969 seconds