Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT Tree: Multi-line label
SWT Tree: Multi-line label [message #507244] Tue, 12 January 2010 10:37 Go to next message
Eclipse UserFriend
Hello,

With SWT, when one sets as text for a label of a tree a String with newlines in it (e.g. "This is\na multiline\nlabel"), the label is displayed on multiple lines.
This is an important property I would like to keep in the RAP version of my RCP application, but somehow I'm unable to manage to make it work. It's as if the newline were just dismissed by the tree
widget.

Any idea ?

Thanks a lot in advance,

--
Laurent
Re: SWT Tree: Multi-line label [message #507386 is a reply to message #507244] Wed, 13 January 2010 05:17 Go to previous messageGo to next message
Eclipse UserFriend
Laurent,

I am sorry to say so but this is currently not possible with RAP. The
client-side Tree implementation does not support multi-line items.
Feel free to file an enhancement request. However, changes are low that
we can implement this in the near future because of the limitations of
the client-side Tree implementation.

Regards
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com

On 12.01.2010 16:37, Laurent Petit wrote:
> Hello,
>
> With SWT, when one sets as text for a label of a tree a String with
> newlines in it (e.g. "This is\na multiline\nlabel"), the label is
> displayed on multiple lines.
> This is an important property I would like to keep in the RAP version of
> my RCP application, but somehow I'm unable to manage to make it work.
> It's as if the newline were just dismissed by the tree widget.
>
> Any idea ?
>
> Thanks a lot in advance,
>
Re: SWT Tree: Multi-line label [message #507388 is a reply to message #507386] Wed, 13 January 2010 05:23 Go to previous messageGo to next message
Eclipse UserFriend
On SWT this multiline behavior is not consistent on all plaforms. The
only cross platfrom solution is to use owner draw.

Tom

Am 13.01.10 11:17, schrieb Rüdiger Herrmann:
> Laurent,
>
> I am sorry to say so but this is currently not possible with RAP. The
> client-side Tree implementation does not support multi-line items.
> Feel free to file an enhancement request. However, changes are low that
> we can implement this in the near future because of the limitations of
> the client-side Tree implementation.
>
> Regards
> Rüdiger
Re: SWT Tree: Multi-line label [message #1036715 is a reply to message #507244] Mon, 08 April 2013 14:16 Go to previous messageGo to next message
Eclipse UserFriend
What about multiline in TreeItem now? (In TableItem work tag <br/> to wrap text)
Re: SWT Tree: Multi-line label [message #1037369 is a reply to message #1036715] Tue, 09 April 2013 09:16 Go to previous message
Eclipse UserFriend
Hi Alexey,
Yes... if you enable markup support for Tree this should work. You could
specify custom item height as well.
Best,
Ivan

On 4/9/2013 4:05 PM, Alexey Zhukov wrote:
> What about multiline in TreeItem now? (In TableItem work tag <br/> to
> wrap text)

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Problem with RAP Browser component and SSL
Next Topic:internationalization and single sourcing
Goto Forum:
  


Current Time: Mon Jul 07 14:40:56 EDT 2025

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

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

Back to the top