Community
Participate
Working Groups
Due to specific layout constraint of regions container, the auto-size mechanism is not the same as others kinds of container. Since Sirius 4.1 (in progress), the region container is considered as auto-sized as soon as it contains at least one region. The size "responsibility" is handled by the regions. It will be interesting to allow the "Auto Size" if at least one of its regions is not auto-sized. A first step would be to always autorize "Auto Size" action on regions containers. Currently, as workaround, the "Auto Size" action can be launched on one of the regions to auto-size all regions. The feature needs to override the default action (org.eclipse.gmf.runtime.diagram.ui.actions.internal.AutoSizeAction), that is constraint by the {-1, -1} layout constraint. AutoSizeAction.getCommand(Request) ... if (containerWidth.intValue() != -1 || containerHeight.intValue() != -1) { foundNonAutosizedPart = true; } ...
New Gerrit change created: https://git.eclipse.org/r/110179
Created attachment 271793 [details] CompartmentsProject.zip Steps to validate: * Import project CompartmentsProject from CompartmentsProject.zip (data from org.eclipse.sirius.tests.unit.diagram.compartment.ICompartmentTests) * Open diagram HStackDiag * Select "cl1" from "az" * Launch action "Auto Size" from tabbar * --> The container "az" and all its children are reduced (to auto size). * Undo * Select "az" * Launch action "Auto Size" from tabbar * --> The container "az" and all its children are reduced (to auto size).
Gerrit change https://git.eclipse.org/r/110179 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f568f7e4a60be596c97b1dba99761663177659d4
being homologated...
Validated with Sirius 5.1.1rc2_20180105
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.
New Gerrit change created: https://git.eclipse.org/r/122201
Gerrit change https://git.eclipse.org/r/122201 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=152e9bf6165d6971a987fb9a5dbdfb63af5ba97f