Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 509808

Summary: Centering multiline title for diagram elements
Product: [Modeling] Sirius Reporter: Nobody - feel free to take it <nobody>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: pierre-charles.david
Version: unspecifiedKeywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Centering is based on longes line (IMediaManagement.upload) and not made for each line individually none

Description Nobody - feel free to take it CLA 2017-01-01 15:45:15 EST
Created attachment 266082 [details]
Centering is based on longes line (IMediaManagement.upload) and not made for each line individually

When setting the title of the graphical diagram element to centered only the textbox as a whole is centered. The inside stil stays leftbound.
Comment 1 Pierre-Charles David CLA 2017-01-02 03:56:50 EST
Hi, thanks for the report.

I can confirm the behavior you see, but this works as intended and as documented. See https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#label_style which mentions for "Label Alignment":

   "For containers, it only applies to the container’s label itself, not its content."

In other words, the centering applies to the label as a whole block (relative to the enclosing container), not to the lines of text which make the content of the label.

I'm closing this as WORKSFORME as it's not a bug and works as intended right now. This does not mean your request has no weight, but it would be a new feature, to allow controlling separately the label's alignement as a block and the text justification inside that block. Feel free to reopen as an "enhancement" request (available in the "Importance" section of the ticket's properties), but be aware that unless you're willing to sponsor the dev and/or contribute a patch, it will have a low priority.