Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Center multiline Title
Center multiline Title [message #1749741] Sat, 10 December 2016 17:15 Go to next message
Eclipse UserFriend
Hi,

I am having trouble centering a multiline title text.
Any Idea on how to center each line instead of just using the longest line.

See the attached image (upload should be centered [and not alligned left] below <<EntryLevelSystemCall>>)

Thanks in advance!

Hannes
Re: Center multiline Title [message #1749853 is a reply to message #1749741] Tue, 13 December 2016 09:15 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed, in your VSM you can specify if the label should be placed on the left, center or right of its parent, but the label itself is displayed as aligned left. In my opinion, the alignement should follow the placement. Can you open a bugzilla about it?
Meanwhile, I think that your only solution is to provide a custom style[1] to provide your own edit part for the container having a specific LabelEditPart where you can set the text aligment as centered.

Regards,
Steve

[1] https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Center multiline Title [message #1750915 is a reply to message #1749853] Sun, 01 January 2017 20:45 Go to previous messageGo to next message
Eclipse UserFriend
Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=509808
Re: Center multiline Title [message #1750916 is a reply to message #1749853] Sun, 01 January 2017 20:46 Go to previous message
Eclipse UserFriend
duplicated message

[Updated on: Sun, 01 January 2017 20:46] by Moderator

Report message to a moderator

Previous Topic:Edge creation tool not working
Next Topic:Create New Relation Edge instance in Section
Goto Forum:
  


Current Time: Wed Apr 24 17:30:45 GMT 2024

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

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

Back to the top