Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to change layout programatically
How to change layout programatically [message #1822221] Sun, 01 March 2020 23:57 Go to next message
Eclipse UserFriend
Hi,

In .odesign file there is option to change layout at runtime { PFA], i want to expose same option from toolbar {like node arrangement Top-Bottom or left-right}, how can i do , is there any particular methods which will be useful.

Thanks and Regards
Mohit Advani
  • Attachment: Layout.jpg
    (Size: 98.39KB, Downloaded 60 times)
Re: How to change layout programatically [message #1822348 is a reply to message #1822221] Wed, 04 March 2020 10:15 Go to previous message
Eclipse UserFriend
Hi,

The arrange options cannot be chosen by the end user in the diagram. By default, the arrange all will perform the layout found by the sirius DefaultLayoutProvider: see https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html.
You can provide your own tabbar action (see https://www.eclipse.org/sirius/doc/developer/extensions-provide_tabbar_extensions.html) to execute a specific arrange algorithm. The new action can call org.eclipse.sirius.diagram.ui.tools.internal.layout.provider.CompositeTopDownProvider.getLayoutNodeProvider(IGraphicalEditPart) for instance, and then execute the command returned by org.eclipse.gmf.runtime.diagram.ui.services.layout.AbstractLayoutEditPartProvider.layoutEditParts(List, IAdaptable)

regards,

Florian
Previous Topic:How to open Table representation programmatically
Next Topic:Variable Filter
Goto Forum:
  


Current Time: Mon Jun 23 03:37:49 EDT 2025

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

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

Back to the top