Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Multiline labels and styled text
Multiline labels and styled text [message #1440379] Wed, 08 October 2014 09:33 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
Hi,

I have two questions:

I would like to display OCL text in a diagram. This text can span
multiple lines which the user has formatted carefully with indentation
etc.. Now, this multiline label text seems to be always centered in
their box, which doesn't look too good. Is there a way I can have the
text appear "as is", without centering it?

Now, this multiline text follows syntactic rules, and could
theoretically be formatted by highlighting keywords in a different
style. Is there any way I can use styled text mechanisms on diagram labels?
Re: Multiline labels and styled text [message #1440529 is a reply to message #1440379] Wed, 08 October 2014 13:27 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 470
Registered: May 2011
Senior Member
Hello,

Currently, you cannot do it with sirius. You will have to provide your
own EditPart (using your own AbstractEditPartProvider with the extension
point org.eclipse.gmf.runtime.diagram.ui.editpartProviders) and
customize it to display its label as you described.

Regards,
Steve

Le 08/10/2014 11:33, Felix Dorner a écrit :
> Hi,
>
> I have two questions:
>
> I would like to display OCL text in a diagram. This text can span
> multiple lines which the user has formatted carefully with indentation
> etc.. Now, this multiline label text seems to be always centered in
> their box, which doesn't look too good. Is there a way I can have the
> text appear "as is", without centering it?
>
> Now, this multiline text follows syntactic rules, and could
> theoretically be formatted by highlighting keywords in a different
> style. Is there any way I can use styled text mechanisms on diagram labels?
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Reuse tab Semantic in TreeItem
Next Topic:Filling Color For Sirius Diagram Container
Goto Forum:
  


Current Time: Sun Mar 29 19:35:28 GMT 2020

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

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

Back to the top