Community
Participate
Working Groups
The Label Border Style options reflect internal or legacy decisions, they should be more intuitive: - by default the option is empty, but it has not the same behaviour wether the Container is List (border) or Free Form (no border). - "Label Border For Container" can be selected for a List -> what does it mean ? - "No Label Border For List" can be selected for a Free Form -> what does it mean ? - "Label Border Style With Beveled Corner" can be selected for a List, but it does nothing I propose to rename these options to: -"No label Border" -"Label Border" -"Label Border With Beveled Corner" When creating a Gradient on a List, the "Label Border" could be pre-selected. And when it is created on a Free Form, the "No label Border" option could be pre-selected.
Several MM changes might be required. The available border styles are stored in org.eclipse.sirius.diagram/model/DiagramEnvironment.odesign This might be transformed into an EEnum with the current available label border styles. This configuration parameter is only available on the Gradient style: FlatContainerStyleDescription.getLabelBorderStyle(): it should also be available on other container styles (except Parrallelogram which should not exists). Note that the value is used to configure the figures and content pane selection, but this is not stored in the aird model. We have to see if it should. Note that after this enhancement, this should work for Container, List and RegionContainer. A migration is required for existing VSM and maybe aird (if we create an attribute in the styles)
Implementor will have to pay attention (simplify, enhance, correct) to AbstractDiagramElementContainerEditPart.reInitFigure(), border, margin, compartment edit part refreshes, ...