|
Re: Multiline labels and styled text [message #1440529 is a reply to message #1440379] |
Wed, 08 October 2014 13:27 |
|
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 Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02217 seconds