Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to change layout programatically
How to change layout programatically [message #1822221] Mon, 02 March 2020 04:57 Go to next message
Mohit Advani is currently offline Mohit AdvaniFriend
Messages: 28
Registered: May 2019
Junior Member
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 33 times)
Re: How to change layout programatically [message #1822348 is a reply to message #1822221] Wed, 04 March 2020 15:15 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
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: Thu Apr 25 00:26:23 GMT 2024

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

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

Back to the top