|
Re: Getting the LayoutConstraint of a Node without opening a session? [message #1847137 is a reply to message #1847125] |
Fri, 15 October 2021 15:43  |
|
Hi,
There is no API to manipulate the node size outside of a session. At the end, when you resize a node (with the mouse), a org.eclipse.gmf.runtime.diagram.ui.commands.SetBoundsCommand is called. You can do the same, but you need at least a TransactionalEditingDomain, where the aird resource is loaded, and the node to resize, in the IAdaptable parameter (usually a org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter).
Moreover, it sounds risky. Changing the size of the node could have consequences on other elements (the edge routing for example).
Regards,
Laurent
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02952 seconds